* Constructs an `Observable` that, when subscribed, causes a request with the special method * `JSONP` to be dispatched via the interceptor pipeline. * The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain * API endpoints that don't support newer, *
(url: string, callbackParam: string)
| 1497 | * |
| 1498 | */ |
| 1499 | jsonp<T>(url: string, callbackParam: string): Observable<T> { |
| 1500 | return this.request<any>('JSONP', url, { |
| 1501 | params: new HttpParams().append(callbackParam, 'JSONP_CALLBACK'), |
| 1502 | observe: 'body', |
| 1503 | responseType: 'json', |
| 1504 | }); |
| 1505 | } |
| 1506 | |
| 1507 | /** |
| 1508 | * Constructs an `OPTIONS` request that interprets the body as an |
no test coverage detected