Function post

  • post(url, data?, options?): Promise<KnorryResponse>
  • Makes a post request to the specified url

    Parameters

    • url: string

      The URL to which the HTTP request will be sent.

    • Optional data: RequestData

      The data to be sent in the request body when using a method like POST

    • Optional options: RequestOptions

      An optional object containing additional options for the request, such as headers

    Returns Promise<KnorryResponse>

    A Promise that resolves either with a primitive type containing the full response as the $res property or undefined

Generated using TypeDoc