Ajit Singh
3c474ecf56
fix(common): add boolean to valid json for testing ( #37893 )
...
boolean is a valid json but at present we cannot test Http request using boolean added support for boolean requests
Fixes #20690
PR Close #37893
2020-10-05 17:07:41 -07:00
Joey Perrott
d1ea1f4c7f
build: update license headers to reference Google LLC ( #37205 )
...
Update the license headers throughout the repository to reference Google LLC
rather than Google Inc, for the required license headers.
PR Close #37205
2020-05-26 14:26:58 -04:00
Joey Perrott
698b0288be
build: reformat repo to new clang@1.4.0 ( #36613 )
...
PR Close #36613
2020-04-14 12:08:36 -07:00
Dave
76110d71d3
docs(http): add information about body content type to flush method for testing ( #29214 )
...
PR Close #29214
2019-04-01 11:03:49 -07:00
Pete Bacon Darwin
0918adf39d
docs: common with @publicApi
tags ( #26595 )
...
PR Close #26595
2018-10-19 14:35:53 -07:00
Pete Bacon Darwin
4b96a58c5a
docs: remove all deprecated @stable
jsdoc tags ( #23210 )
...
These are no longer needed as stable docs are computed as those that
do not have `@experimental` or `@deprecated` tags.
PR Close #23210
2018-04-10 21:49:32 -07:00
Igor Minar
b43f8bc7d3
feat(core): upgrade rxjs to 6.0.0-alpha.4 ( #22573 )
...
PR Close #22573
2018-03-19 21:51:51 -07:00
Alex Rickabaugh
8b14488827
fix(common): don't convert null to a string when flushing a mock request ( #21417 )
...
A bug in TestRequest caused null response bodies to be stringified. This
change causes null to be treated faithfully.
Fixes #20744
PR Close #21417
2018-02-01 08:32:43 -08:00
Alex Rickabaugh
72c7b6edea
feat: deprecate @angular/http in favor of @angular/common/http ( #18906 )
...
As of 5.0, @angular/http is deprecated. @angular/common/http will
be the official HTTP API in Angular going forward.
PR Close #18906
2017-08-28 18:46:58 -05:00
jnizet
5c62e300e1
fix(common): send flushed body as error instead of null
...
fix #18181
2017-07-18 10:57:51 -07:00
Alex Rickabaugh
18559897a0
fix(common): document HttpClient, fixing a few other issues
2017-07-13 14:58:33 -07:00
Alex Rickabaugh
c81ad9d19d
feat(common): two missing features in HttpClient ( #17996 )
...
- Add params to HttpRequest API
- Add optional description to testing APIs
2017-07-07 14:56:36 -07:00
Alex Rickabaugh
37797e2b4e
feat(common): new HttpClient API
...
HttpClient is an evolution of the existing Angular HTTP API, which exists
alongside of it in a separate package, @angular/common/http. This structure
ensures that existing codebases can slowly migrate to the new API.
The new API improves significantly on the ergonomics and features of the legacy
API. A partial list of new features includes:
* Typed, synchronous response body access, including support for JSON body types
* JSON is an assumed default and no longer needs to be explicitly parsed
* Interceptors allow middleware logic to be inserted into the pipeline
* Immutable request/response objects
* Progress events for both request upload and response download
* Post-request verification & flush based testing framework
2017-07-07 12:09:32 -07:00