HttpFileRequest
Extends:
Direct Subclass:
Extends HttpRequest with file request/response handling.
Method Summary
| Public Methods | ||
| public |
Overridden to return the response as a HttpFileResponse instead of a HttpResponse. |
|
| public |
setDefaultRequestHeaders(method: *) Overridden to ensure we send the correct content-type header for file requests. |
|
Inherited Summary
| From class HttpRequest | ||
| public get |
Get the parsed URL of the request. |
|
| public |
request: * |
|
| public |
|
|
| public |
deepCopy(): * Create a deep copy of this HttpRequest object. |
|
| public |
get(data: *): * Shortcut for |
|
| public |
head(data: *): * Shortcut for |
|
| public |
httpdelete(data: *): * Shortcut for |
|
| public |
makeRequestBody(data: *): * Make request body from the provided data. |
|
| public |
Creates a HttpResponse. |
|
| public |
patch(data: *): * Shortcut for |
|
| public |
post(data: *): * Shortcut for |
|
| public |
put(data: *): * Shortcut for |
|
| public |
Send the request. |
|
| public |
setDefaultRequestHeaders(method: *) Set default request headers. |
|
| public |
setRequestHeader(header: *, value: *) Set a request header. |
|
| public |
setTreatRedirectResponseAsError(treatRedirectResponseAsError: bool) Set how we treat 3xx responses. |
|
| public |
Set the URL of the request. |
|
Public Methods
public makeResponse(): HttpFileResponse source
Overridden to return the response as a HttpFileResponse instead of a HttpResponse.
Override:
HttpRequest#makeResponsepublic setDefaultRequestHeaders(method: *) source
Overridden to ensure we send the correct content-type header for file requests.
Override:
HttpRequest#setDefaultRequestHeadersParams:
| Name | Type | Attribute | Description |
| method | * |