@angular/http

Deprecated in favor of @angular/common/http.

入口点

主要

@angular/http

已废弃: all exports of this entry point are deprecated.

Deprecated in favor of @angular/common/http.

次要

@angular/http/testing

已废弃: all exports of this entry point are deprecated.

主入口点的导出

已弃用: all exports of this entry point are deprecated.

模块

HttpModule

已废弃: see https://angular.io/guide/http

The module that includes http's providers

JsonpModule

已废弃: see https://angular.io/guide/http

The module that includes jsonp's providers

BaseRequestOptions

已废弃: see https://angular.io/guide/http

Subclass of RequestOptions, with default values.

BaseResponseOptions

已废弃: see https://angular.io/guide/http

Subclass of ResponseOptions, with default values.

BrowserXhr

已废弃: see https://angular.io/guide/http

A backend for http that uses the XMLHttpRequest browser API.

Connection

已废弃: see https://angular.io/guide/http

Abstract class from which real connections are derived.

ConnectionBackend

已废弃: see https://angular.io/guide/http

Abstract class from which real backends are derived.

CookieXSRFStrategy

已废弃: see https://angular.io/guide/http

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.

Headers

已废弃: see https://angular.io/guide/http

Polyfill for Headers, as specified in the Fetch Spec.

Http

已废弃: see https://angular.io/guide/http

Performs http requests using XMLHttpRequest as the default backend.

Jsonp

已废弃: see https://angular.io/guide/http

QueryEncoder

已废弃: see https://angular.io/guide/http

Request

已废弃: see https://angular.io/guide/http

Creates Request instances from provided values.

RequestOptions

已废弃: see https://angular.io/guide/http

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

Response

已废弃: see https://angular.io/guide/http

Creates Response instances from provided values.

ResponseOptions

已废弃: see https://angular.io/guide/http

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

URLSearchParams

已废弃: see https://angular.io/guide/http

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()
XHRBackend

已废弃: see https://angular.io/guide/http

Creates XHRConnectioninstances.

XHRConnection

已废弃: see https://angular.io/guide/http

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

XSRFStrategy

已废弃: see https://angular.io/guide/http

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

结构

JSONPBackend

已废弃: see https://angular.io/guide/http

A ConnectionBackendthat uses the JSONP strategy of making requests.

JSONPConnection

已废弃: see https://angular.io/guide/http

Base class for an in-flight JSONP request.

ReadyState

已废弃: see https://angular.io/guide/http

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

RequestMethod

已废弃: see https://angular.io/guide/http

Supported http methods.

RequestOptionsArgs

已废弃: see https://angular.io/guide/http

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

ResponseContentType

已废弃: see https://angular.io/guide/http

Define which buffer to use to store the response

ResponseOptionsArgs

已废弃: see https://angular.io/guide/http

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

ResponseType

已废弃: see https://angular.io/guide/http

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