export class BaseRequestOptions
export class BaseRequestOptions
exported from angular2/http defined in angular2/src/http/base_request_options.ts (line 103)
Subclass of RequestOptions
, with default values.
Default values:
- method: RequestMethod.Get
- headers: empty
Headers
object
This class could be extended and bound to the RequestOptions
class
when configuring an Injector
, in order to override the default options
used by Http
to create and send Requests.
Example (live demo)
The options could also be extended when manually creating a Request
object.
Example (live demo)
Annotations
@Injectable()
@Injectable()
Constructor
constructor()
constructor()
Not Yet Documented