Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HTTPResponse

Hierarchy

  • HTTPResponse

Index

Properties

body

body: WAKBlobInstance | Image | String

Body of the returned message to set.

contentType

contentType: String

Content-type of the response to set.

headers

headers: String[]

Header of the HTTPResponse.

statusCode

statusCode: Number

Return status code to set.

Methods

allowCache

  • allowCache(useCache: Boolean): void
  • Indicates if the contents of the HTTPResponse should be cached on the server.

    Parameters

    • useCache: Boolean

    Returns void

allowCompression

  • allowCompression(minThreshold: Number, maxThreshold: Number): void
  • Sets custom compression thresholds for the HTTPResponse.

    Parameters

    • minThreshold: Number

      Minimum size (in bytes) below which the response should not be compressed or -1 to use default value

    • maxThreshold: Number

      Maximum size (in bytes) up to which the response should not be compressed or -1 to use default value

    Returns void

sendChunkedData