Send a HTTP HEAD Request.

Hierarchy (view full)

Properties

Methods - Factory

Methods - Other

Methods - called internally

Properties

abilityAlias?: string
callStack?: CallStackInfo[]
headers: Headers = {}

Methods - Factory

  • Add headers to the HTTP HEAD request to send.

    Parameters

    Returns Head

    this instance

    Example

    simple request

    Head.from('https://my-fancy-url.com');
    

    with chained definitions

    Head.from('https://my-fancy-url.com')
    // add headers
    .withHeaders({
    key: value,
    })
    // define expected response format
    .withResponseFormat('text');

Methods - Other

  • Parameters

    • entry: CallStackInfo

    Returns void

  • Parameters

    • calledWith: CallStackCalledWith

    Returns void

  • Set the alias which is used for an underlying ability

    Parameters

    • alias: undefined | string

      with which an ability was initialized

    Returns this

    current action

Methods - called internally

  • Send a HTTP HEAD request to the specified url. Optionally it is possible to chain definitions for headers as well as the expected response type.

    Parameters

    • actor: Actor

      the actor

    Returns Promise<Response>

    the response

Generated using TypeDoc