Options
All
  • Public
  • Public/Protected
  • All
Menu

RxComp HttpModule

Index

Type aliases

HttpBodyType

HttpBodyType<T>: T | string | Blob | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream<Uint8Array> | null | undefined

Type parameters

  • T

HttpEvent

Type parameters

  • T

HttpMethodBodyType

HttpMethodBodyType: "POST" | "PUT" | "PATCH"

HttpMethodNoBodyType

HttpMethodNoBodyType: "GET" | "DELETE" | "OPTIONS" | "HEAD" | "JSONP"

HttpMethodType

HttpMethodType: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD" | "JSONP"

HttpObserveType

HttpObserveType: "body" | "events" | "response"

HttpResponseType

HttpResponseType: "arraybuffer" | "blob" | "json" | "text"

IHttpHeaders

IHttpHeaders: string | {}

Variables

Const HttpInterceptors

HttpInterceptors: IHttpInterceptor[] = []

Const XSSI_PREFIX

XSSI_PREFIX: RegExp = /^\)\]\}',?\n/

Const factories

factories: typeof Factory[] = []

Const fetchHandler

fetchHandler: HttpHandler = new HttpFetchHandler()

Const pipes

pipes: typeof Pipe[] = []

Const xhrHandler

xhrHandler: HttpHandler = new HttpXhrHandler()

Functions

encodeParam_

  • encodeParam_(value: string): string

escapeHtml

  • escapeHtml(text: string): string

getResponseUrl_

  • getResponseUrl_(xhr: any): string | null

initHttpState

  • initHttpState(doc: Document, appId: string): {}

interceptingHandler

isArrayBuffer_

  • isArrayBuffer_(value: any): value is ArrayBuffer

isBlob_

  • isBlob_(value: any): value is Blob

isFormData_

  • isFormData_(value: any): value is FormData

jsonpCallbackContext

  • jsonpCallbackContext(): Object

makeStateKey

  • makeStateKey<T>(key: string): string

methodHasBody_

  • methodHasBody_(method: string): boolean

optionsWithBody_

parseRawParams_

  • parseRawParams_(params: Map<string, string[]>, queryString: string, encoder: IHttpParamEncoder): Map<string, string[]>

unescapeHtml

  • unescapeHtml(text: string): string