hammerspoon2-docs
    Preparing search index...

    Function post

    • post(
          url: string,
          body?: string | null,
          headers?: Record<string, string> | null,
      ): Promise<any>

      Perform an HTTP POST request.

      Parameters

      • url: string

        The URL to request.

      • Optionalbody: string | null

        Optional request body string.

      • Optionalheaders: Record<string, string> | null

        Optional dictionary of request headers.

      Returns Promise<any>

      Resolves with the HTTP response.