Options
All
  • Public
  • Public/Protected
  • All
Menu

Fetch client to request protected content over http(s)

Hierarchy

  • Fetch

Index

Constructors

constructor

Methods

Static Private deleteCredentials

Static Private executeBasic

  • Execute the Basic request creating a authorization header base64 hash using user and pwd

    Parameters

    • options: IOptionsHTTP | IOptionsHTTPS

      the Options object

    • protocol: __module | __module

      the Protocol object (http or https)

    • res: any

      the Promise Resolve function

    • rej: any

      the Promise Reject function

    Returns void

    void

Static Private executeNTLM1

  • Execute the NTLM step 1 request creating the authorization Type1 header message

    Parameters

    • options: IOptionsHTTP | IOptionsHTTPS

      the Options object

    • protocol: __module | __module

      the Protocol object (http or https)

    • res: any

      the Promise Resolve function

    • rej: any

      the Promise Reject function

    Returns void

    void

Static Private executeNTLM2

  • Execute the NTLM step 2 request by decoding the server response and creating the new message authorization header

    Parameters

    • result: IResult

      the Result object

    • options: IOptionsHTTP | IOptionsHTTPS

      the Options object

    • response: IncomingMessage

      the Response object

    • protocol: __module | __module

      the Protocol object (http or https)

    • res: any

      the Promise Resolve function

    • rej: any

      the Promise Reject function

    Returns void

    void

Static Private executeRedirect

  • Follow request redirects

    Parameters

    • options: IOptionsHTTP | IOptionsHTTPS

      the Options object

    • result: IResult

      the Result object

    • protocol: __module | __module

      the Protocol object (http or https)

    • res: any

      the Promise Resolve function

    • rej: any

      the Promise Reject function

    Returns void

    void

Static Private get

  • Requests a NTLM protected http(s) url using param values

    Parameters

    • options: IOptionsHTTP | IOptionsHTTPS

      the Options object

    • protocol: __module | __module

      the Protocol object (http or https)

    • res: any

      the Promise Resolve function

    • rej: any

      the Promise Reject function

    Returns void

    void

Static Private getAuthMethods

  • Returns the available server auth methods

    Parameters

    Returns undefined | string[]

    authMethods

Static request

Static Private setCookie

  • Adds the cookie (if one) from header into the jar (if one)

    Parameters

    Returns void

    void

Static Private setHeaders

Static Private setListeners

  • Sets the response listeners

    Parameters

    • response: IncomingMessage

      the Response object

    • options: IOptionsHTTP | IOptionsHTTPS

      the Options object

    • result: IResult

      the Result object

    • res: any

      the Promise Resolve function

    Returns void

    void

Generated using TypeDoc