Construct a DELETE request which interprets the body as an ArrayBuffer
and returns it.
an Observable
of the body as an ArrayBuffer
.
Construct a DELETE request which interprets the body as a Blob
and returns it.
an Observable
of the body as a Blob
.
Construct a DELETE request which interprets the body as text and returns it.
an Observable
of the body as a string
.
Construct a DELETE request which interprets the body as an ArrayBuffer
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of ArrayBuffer
.
Construct a DELETE request which interprets the body as a Blob
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Blob
.
Construct a DELETE request which interprets the body as text and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of string
.
Construct a DELETE request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Object
.
Construct a DELETE request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of T
.
Construct a DELETE request which interprets the body as an ArrayBuffer
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of ArrayBuffer
.
Construct a DELETE request which interprets the body as a Blob
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Blob
.
Construct a DELETE request which interprets the body as text and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of string
.
Construct a DELETE request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Object
.
Construct a DELETE request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of T
.
Construct a DELETE request which interprets the body as JSON and returns it.
an Observable
of the body as an Object
.
Construct a DELETE request which interprets the body as JSON and returns it.
an Observable
of the body as type T
.
Construct a GET request which interprets the body as an ArrayBuffer
and returns it.
an Observable
of the body as an ArrayBuffer
.
Construct a GET request which interprets the body as a Blob
and returns it.
an Observable
of the body as a Blob
.
Construct a GET request which interprets the body as text and returns it.
an Observable
of the body as a string
.
Construct a GET request which interprets the body as an ArrayBuffer
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of ArrayBuffer
.
Construct a GET request which interprets the body as a Blob
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Blob
.
Construct a GET request which interprets the body as text and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of string
.
Construct a GET request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Object
.
Construct a GET request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of T
.
Construct a GET request which interprets the body as an ArrayBuffer
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of ArrayBuffer
.
Construct a GET request which interprets the body as a Blob
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Blob
.
Construct a GET request which interprets the body as text and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of string
.
Construct a GET request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Object
.
Construct a GET request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of T
.
Construct a GET request which interprets the body as JSON and returns it.
an Observable
of the body as an Object
.
Construct a GET request which interprets the body as JSON and returns it.
an Observable
of the body as type T
.
Construct a HEAD request which interprets the body as an ArrayBuffer
and returns it.
an Observable
of the body as an ArrayBuffer
.
Constructs an Observable
which, when subscribed, will cause the configured
HEAD request to be executed on the server. See the individual overloads for
details of head()
's return type based on the provided options.
Construct a HEAD request which interprets the body as text and returns it.
an Observable
of the body as a string
.
Construct a HEAD request which interprets the body as an ArrayBuffer
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of ArrayBuffer
.
Construct a HEAD request which interprets the body as a Blob
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Blob
.
Construct a HEAD request which interprets the body as text and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of string
.
Construct a HEAD request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Object
.
Construct a HEAD request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of T
.
Construct a HEAD request which interprets the body as an ArrayBuffer
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of ArrayBuffer
.
Construct a HEAD request which interprets the body as a Blob
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Blob
.
Construct a HEAD request which interprets the body as text and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of string
.
Construct a HEAD request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Object
.
Construct a HEAD request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of T
.
Construct a HEAD request which interprets the body as JSON and returns it.
an Observable
of the body as an Object
.
Construct a HEAD request which interprets the body as JSON and returns it.
an Observable
of the body as type T
.
Construct a JSONP request for the given URL and name of the callback parameter.
A suitable interceptor must be installed (e.g. via the HttpClientJsonpModule
).
If no such interceptor is reached, then the JSONP
request will likely be
rejected by the configured backend.
an Observable
of the response object as an Object
Construct a JSONP request for the given URL and name of the callback parameter.
A suitable interceptor must be installed (e.g. via the HttpClientJsonpModule
).
If no such interceptor is reached, then the JSONP
request will likely be
rejected by the configured backend.
an Observable
of the response object as type T
.
Make an OPTIONS request which interprets the body as an ArrayBuffer
and returns it.
an Observable
of the body as an ArrayBuffer
.
Construct an OPTIONS request which interprets the body as a Blob
and returns it.
an Observable
of the body as a Blob
.
Construct an OPTIONS request which interprets the body as text and returns it.
an Observable
of the body as a string
.
Construct an OPTIONS request which interprets the body as an ArrayBuffer
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of ArrayBuffer
.
Construct an OPTIONS request which interprets the body as a Blob
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Blob
.
Construct an OPTIONS request which interprets the body as text and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of string
.
Construct an OPTIONS request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Object
.
Construct an OPTIONS request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of T
.
Construct an OPTIONS request which interprets the body as an ArrayBuffer
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of ArrayBuffer
.
Construct an OPTIONS request which interprets the body as a Blob
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Blob
.
Construct an OPTIONS request which interprets the body as text and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of string
.
Construct an OPTIONS request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Object
.
Construct an OPTIONS request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of T
.
Construct an OPTIONS request which interprets the body as JSON and returns it.
an Observable
of the body as an Object
.
Construct an OPTIONS request which interprets the body as JSON and returns it.
an Observable
of the body as type T
.
Construct a PATCH request which interprets the body as an ArrayBuffer
and returns it.
an Observable
of the body as an ArrayBuffer
.
Construct a PATCH request which interprets the body as a Blob
and returns it.
an Observable
of the body as a Blob
.
Construct a PATCH request which interprets the body as text and returns it.
an Observable
of the body as a string
.
Construct a PATCH request which interprets the body as an ArrayBuffer
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of ArrayBuffer
.
Construct a PATCH request which interprets the body as a Blob
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Blob
.
Construct a PATCH request which interprets the body as text and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of string
.
Construct a PATCH request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Object
.
Construct a PATCH request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of T
.
Construct a PATCH request which interprets the body as an ArrayBuffer
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of ArrayBuffer
.
Construct a PATCH request which interprets the body as a Blob
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Blob
.
Construct a PATCH request which interprets the body as text and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of string
.
Construct a PATCH request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Object
.
Construct a PATCH request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of T
.
Construct a PATCH request which interprets the body as JSON and returns it.
an Observable
of the body as an Object
.
Construct a PATCH request which interprets the body as JSON and returns it.
an Observable
of the body as type T
.
Construct a POST request which interprets the body as an ArrayBuffer
and returns it.
an Observable
of the body as an ArrayBuffer
.
Construct a POST request which interprets the body as a Blob
and returns it.
an Observable
of the body as a Blob
.
Construct a POST request which interprets the body as text and returns it.
an Observable
of the body as a string
.
Construct a POST request which interprets the body as an ArrayBuffer
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of ArrayBuffer
.
Construct a POST request which interprets the body as a Blob
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Blob
.
Construct a POST request which interprets the body as text and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of string
.
Construct a POST request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Object
.
Construct a POST request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of T
.
Construct a POST request which interprets the body as an ArrayBuffer
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of ArrayBuffer
.
Construct a POST request which interprets the body as a Blob
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Blob
.
Construct a POST request which interprets the body as text and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of string
.
Construct a POST request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Object
.
Construct a POST request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of T
.
Construct a POST request which interprets the body as JSON and returns it.
an Observable
of the body as an Object
.
Construct a POST request which interprets the body as JSON and returns it.
an Observable
of the body as type T
.
Construct a PUT request which interprets the body as an ArrayBuffer
and returns it.
an Observable
of the body as an ArrayBuffer
.
Construct a PUT request which interprets the body as a Blob
and returns it.
an Observable
of the body as a Blob
.
Construct a PUT request which interprets the body as text and returns it.
an Observable
of the body as a string
.
Construct a PUT request which interprets the body as an ArrayBuffer
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of ArrayBuffer
.
Construct a PUT request which interprets the body as a Blob
and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Blob
.
Construct a PUT request which interprets the body as text and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of string
.
Construct a PUT request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of Object
.
Construct a PUT request which interprets the body as JSON and returns the full event stream.
an Observable
of all HttpEvent
s for the request, with a body type of T
.
Construct a PUT request which interprets the body as an ArrayBuffer
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of ArrayBuffer
.
Construct a PUT request which interprets the body as a Blob
and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Blob
.
Construct a PUT request which interprets the body as text and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of string
.
Construct a PUT request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of Object
.
Construct a PUT request which interprets the body as JSON and returns the full response.
an Observable
of the HttpResponse
for the request, with a body type of T
.
Construct a PUT request which interprets the body as JSON and returns it.
an Observable
of the body as an Object
.
Construct a PUT request which interprets the body as JSON and returns it.
an Observable
of the body as type T
.
Send the given HttpRequest
and return a stream of HttpEvents
.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
Construct a request which interprets the body as an ArrayBuffer
and returns it.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of the body as an ArrayBuffer
.
Construct a request which interprets the body as a Blob
and returns it.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of the body as a Blob
.
Construct a request which interprets the body as text and returns it.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of the body as a string
.
Construct a request which interprets the body as an ArrayBuffer
and returns the full event stream.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of all HttpEvent
s for the request, with a body type of ArrayBuffer
.
Construct a request which interprets the body as an Blob
and returns the full event stream.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of all HttpEvent
s for the request, with a body type of Blob
.
Construct a request which interprets the body as text and returns the full event stream.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of all HttpEvent
s for the request, with a body type of string
.
Construct a request which interprets the body as JSON and returns the full event stream.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of all HttpEvent
s for the request, with a body type of Object
.
Construct a request which interprets the body as JSON and returns the full event stream.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of all HttpEvent
s for the request, with a body type of R
.
Construct a request which interprets the body as an ArrayBuffer
and returns the full response.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of the HttpResponse
for the request, with a body type of ArrayBuffer
.
Construct a request which interprets the body as a Blob
and returns the full response.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of the HttpResponse
for the request, with a body type of Blob
.
Construct a request which interprets the body as text and returns the full response.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of the HttpResponse
for the request, with a body type of string
.
Construct a request which interprets the body as JSON and returns the full response.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of the HttpResponse
for the request, with a body type of Object
.
Construct a request which interprets the body as JSON and returns the full response.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of the HttpResponse
for the request, with a body type of R
.
Construct a request which interprets the body as JSON and returns it.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of the HttpResponse
for the request, with a body type of Object
.
Construct a request which interprets the body as JSON and returns it.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of the HttpResponse
for the request, with a body type of R
.
Construct a request in a manner where response type and requested Observable
are not known
statically.
This method can be called in one of two ways. Either an HttpRequest
instance can be passed directly as the only parameter, or a method can be
passed as the first parameter, a string URL as the second, and an
options hash as the third.
If a HttpRequest
object is passed directly, an Observable
of the
raw HttpEvent
stream will be returned.
If a request is instead built by providing a URL, the options object
determines the return type of request()
. In addition to configuring
request parameters such as the outgoing headers and/or the body, the options
hash specifies two key pieces of information about the request: the
responseType
and what to observe
.
The responseType
value determines how a successful response body will be
parsed. If responseType
is the default json
, a type interface for the
resulting object may be passed as a type parameter to request()
.
The observe
value determines the return type of request()
, based on what
the consumer is interested in observing. A value of events
will return an
Observable<HttpEvent>
representing the raw HttpEvent
stream,
including progress events by default. A value of response
will return an
Observable<HttpResponse<T>>
where the T
parameter of HttpResponse
depends on the responseType
and any optionally provided type parameter.
A value of body
will return an Observable<T>
with the same T
body type.
an Observable
of whatever was requested, typed to any
.
Generated using TypeDoc
Perform HTTP requests.
HttpClient
is available as an injectable class, with methods to perform HTTP requests. Each request method has multiple signatures, and the return type varies according to which signature is called (mainly the values ofobserve
andresponseType
).