Function withHeaders

  • Appends the given newHeaders to the headers listed in HttpRequest, overwriting any with the same name. NOTE: Case sensitive.

    Parameters

    • httpReq: HttpRequest

      the source request

    • newHeaders: Record<string, string>

      header name/value pairs

    Returns HttpRequest

    an updated variant of the request

Generated using TypeDoc