Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpResponseArgs

Arguments for receiving an HTTP response.

Hierarchy

  • HttpResponseArgs

Index

Constructors

constructor

  • Initializes a new instance of the fm.icelink.httpResponseArgs class.

    Returns HttpResponseArgs

  • Initializes a new instance of the fm.icelink.httpResponseArgs class.

    Parameters

    • requestArgs: HttpRequestArgs

      The request arguments.

    Returns HttpResponseArgs

Properties

Private _binaryContent

_binaryContent: Uint8Array
internal

Private _exception

_exception: Exception
internal

Private _headers

_headers: NameValueCollection
internal

Private _requestArgs

_requestArgs: HttpRequestArgs
internal

Private _statusCode

_statusCode: number
internal

Private _textContent

_textContent: string
internal

Methods

getBinaryContent

  • getBinaryContent(): Uint8Array
  • Gets the binary content read from the HTTP response.

    Returns Uint8Array

getException

  • getException(): Exception
  • Gets the exception generated while completing the request.

    Returns Exception

getHeaders

  • getHeaders(): NameValueCollection
  • Gets the headers read from the HTTP response.

    Returns NameValueCollection

getRequestArgs

  • getRequestArgs(): HttpRequestArgs
  • Gets the original fm.icelink.httpRequestArgs.

    Returns HttpRequestArgs

getStatusCode

  • getStatusCode(): number
  • Gets the status code read from the HTTP response.

    Returns number

getTextContent

  • getTextContent(): string
  • Gets the text content read from the HTTP response.

    Returns string

getTypeString

  • getTypeString(): string
  • Returns string

setBinaryContent

  • setBinaryContent(value: Uint8Array): void
  • Sets the binary content read from the HTTP response.

    Parameters

    • value: Uint8Array

    Returns void

setException

  • setException(value: Exception): void
  • Sets the exception generated while completing the request.

    Parameters

    • value: Exception

    Returns void

Private setHeaders

  • setHeaders(value: NameValueCollection): void
  • internal

    Parameters

    • value: NameValueCollection

    Returns void

setRequestArgs

  • setRequestArgs(value: HttpRequestArgs): void
  • Sets the original fm.icelink.httpRequestArgs.

    Parameters

    • value: HttpRequestArgs

    Returns void

setStatusCode

  • setStatusCode(value: number): void
  • Sets the status code read from the HTTP response.

    Parameters

    • value: number

    Returns void

setTextContent

  • setTextContent(value: string): void
  • Sets the text content read from the HTTP response.

    Parameters

    • value: string

    Returns void