@angular/http

入口点

主要

@angular/http

次要

@angular/http/testing

导出列表

BrowserXhr

A backend for http that uses the XMLHttpRequest browser API.

CookieXSRFStrategy

XSRFConfiguration sets up Cross Site Request Forgery (XSRF) protection for the application using a cookie. See https://www.owasp.org/index.php/Cross-SiteRequest_Forgery(CSRF) for more information on XSRF.

XHRBackend

Creates XHRConnectioninstances.

XHRConnection

Creates connections using XMLHttpRequest. Given a fully-qualified request, an XHRConnection will immediately create an XMLHttpRequest object and send the request.

BaseRequestOptions

Subclass of RequestOptions, with default values.

RequestOptions

Creates a request options object to be optionally provided when instantiating a Request.

BaseResponseOptions

Subclass of ResponseOptions, with default values.

ResponseOptions

Creates a response options object to be optionally provided when instantiating a Response.

Headers
Http

Performs http requests using XMLHttpRequest as the default backend.

Jsonp
HttpModule

The module that includes http's providers

JsonpModule

The module that includes jsonp's providers

Connection

Abstract class from which real connections are derived.

ConnectionBackend

Abstract class from which real backends are derived.

XSRFStrategy

An XSRFStrategy configures XSRF protection (e.g. via headers) on an HTTP request.

Request

Creates Request instances from provided values.

Response

Creates Response instances from provided values.

QueryEncoder
URLSearchParams

Map-like representation of url search parameters, based on URLSearchParams in the url living standard, with several extensions for merging URLSearchParams objects:

  • setAll()
  • appendAll()
  • replaceAll()

结构

JSONPBackend

A ConnectionBackendthat uses the JSONP strategy of making requests.

JSONPConnection

Base class for an in-flight JSONP request.

ReadyState

All possible states in which a connection can be, based on States from the XMLHttpRequest spec, but with an additional "CANCELLED" state.

RequestMethod
ResponseContentType

Define which buffer to use to store the response

ResponseType

Acceptable response types to be associated with a Response, based on ResponseType from the Fetch spec.

RequestOptionsArgs

Interface for options to construct a RequestOptions, based on RequestInit from the Fetch spec.

ResponseOptionsArgs

Interface for options to construct a Response, based on ResponseInit from the Fetch spec.