angular-cn/modules/@angular/http
Thierry Templier 0f0a8ade7c feat(http): automatically set request Content-Type header based on body type
Implement the ability to provide objects as request body. The following use cases
are supported:
* raw objects: a JSON payload is created and the content type set to `application/json`
* text: the text is used as it is and no content type header is automatically added
* URLSearchParams: a form payload is created and the content type set to `application/x-www-form-urlencoded`
* FormData: the object is used as it is and no content type header is automatically added
* Blob: the object is used as it is and the content type set with the value of its `type` property if any
* ArrayBuffer: the object is used as it is and no content type header is automatically added

Closes https://github.com/angular/http/issues/69

Closes #7310
2016-05-24 11:42:37 -07:00
..
src feat(http): automatically set request Content-Type header based on body type 2016-05-24 11:42:37 -07:00
test feat(http): automatically set request Content-Type header based on body type 2016-05-24 11:42:37 -07:00
testing docs(http): fix MockBackend example 2016-05-23 17:22:36 -07:00
http.ts repackaging: all the repackaging changes squashed 2016-05-01 20:51:00 -07:00
index.ts repackaging: all the repackaging changes squashed 2016-05-01 20:51:00 -07:00
package.json adds 'repository' metadata to npm modules (#8649) 2016-05-17 23:17:15 -07:00
rollup.config.js build: fix source map paths for npm packages 2016-05-03 13:36:33 -06:00
testing.ts repackaging: all the repackaging changes squashed 2016-05-01 20:51:00 -07:00
tsconfig-es5.json build: turn on tsc's stripInternal when producint public d.ts file 2016-05-20 10:59:57 -07:00
tsconfig-es2015.json build: turn on tsc's stripInternal when producint public d.ts file 2016-05-20 10:59:57 -07:00