Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Message

Represents a request to or a response from a service.

Hierarchy

  • Message

Index

Constructors

Properties

Methods

Constructors

constructor

  • Constructs a message.

    params

    headers The headers for the message.

    Parameters

    • Optional body: any

      The body of the message.

    • Optional headers: MessageHeaders

    Returns Message

Properties

body

body: any

The body of the message.

headers

The HTTP headers.

method

method: string

The HTTP method (GET, POST, etc.) for a request message.

statusCode

statusCode: HttpStatusCode

The HTTP status code for a response message.

url

url: Url

The url of the request message.

Methods

Static createReply

  • Creates a reply message.

    Parameters

    • status: HttpStatusCode

      The HTTP status for the reply.

    • Optional body: any

      The body of the reply message.

    Returns Message

Generated using TypeDoc