Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpLocation

Represents the location of a HTTP endpoint. This object (its json representation) will be used as "location" in a service record.

Hierarchy

  • HttpLocation

Index

Constructors

constructor

  • Returns HttpLocation

  • Parameters

    Returns HttpLocation

Methods

getEndpoint

  • getEndpoint(): string
  • Sets the endpoint, which is the URL of the service. The endpoint is automatically computed when you use the other setX method.

    Returns string

getHost

  • getHost(): string
  • Sets the host.

    Returns string

getPort

  • getPort(): number
  • Sets the port

    Returns number

getRoot

  • getRoot(): string
  • Sets the path of the service (root)

    Returns string

isSsl

  • isSsl(): boolean
  • Sets whether or not the HTTP service is using https.

    Returns boolean

setEndpoint

  • Sets the endpoint, which is the URL of the service. The endpoint is automatically computed when you use the other setX method.

    Parameters

    • endpoint: string

    Returns HttpLocation

setHost

  • Sets the host.

    Parameters

    • host: string

    Returns HttpLocation

setPort

  • Sets the port

    Parameters

    • port: number

    Returns HttpLocation

setRoot

  • Sets the path of the service (root)

    Parameters

    • root: string

    Returns HttpLocation

setSsl

  • Sets whether or not the HTTP service is using https.

    Parameters

    • ssl: boolean

    Returns HttpLocation

Generated using TypeDoc