Type aliases
HttpCallbacks
Http
Callbacks: { failure: (error: Error) => Disposable; success: (response: HttpResponse) => Disposable }
Type declaration
-
Readonly failure: (error: Error) => Disposable
-
- (error: Error): Disposable
-
Parameters
Returns Disposable
-
Readonly success: (response: HttpResponse) => Disposable
-
-
Parameters
Returns Disposable
HttpHeaders
Http
Headers: Readonly<Record<string, string | undefined>>
HttpMethod
HttpMethod: "GET" | "POST" | "PUT" | "DELETE" | "OPTIONS" | "PATCH" | "HEAD"
HttpOptions
Type declaration
-
Optional Readonly body?: undefined | string
-
Optional Readonly headers?: HttpHeaders
-
Optional Readonly method?: HttpMethod
HttpRequestValue
HttpRequestValue<A>: A extends HttpRequest<infer R> ? R : never
Type parameters
HttpResponse
Http
Response<A>: { headers: HttpHeaders; responseText: string; status: number; statusText: string }
Type parameters
Type declaration
-
-
Readonly responseText: string
-
Readonly status: number
-
Readonly statusText: string
JsonPrimitive
JsonPrimitive: string | number | boolean | null
WithHttpManagementOptions
With
HttpManagementOptions: { expiration?: undefined | number; getCacheKey?: undefined | ((url: string, options: HttpOptions) => string); methodsToCache?: HttpMethod[]; timer: Timer }
Type declaration
-
Optional Readonly expiration?: undefined | number
-
Optional Readonly getCacheKey?: undefined | ((url: string, options: HttpOptions) => string)
-
Optional Readonly methodsToCache?: HttpMethod[]
-
Readonly timer: Timer
@typed/http