MCPcopy Create free account
hub / github.com/angular/angular / query

Method query

packages/common/http/src/client.ts:2657–2666  ·  view source on GitHub ↗

* Constructs an observable that, when subscribed, causes the configured * `QUERY` request to execute on the server. The server responds with the result of * the query. See the individual overloads for * details on the return type.

(
    url: string,
    body: any | null,
    options: {
      observe?: 'body' | 'events' | 'response';
      responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
    } & HttpClientCommonOptions = {},
  )

Source from the content-addressed store, hash-verified

2655 * details on the return type.
2656 */
2657 query(
2658 url: string,
2659 body: any | null,
2660 options: {
2661 observe?: 'body' | 'events' | 'response';
2662 responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
2663 } & HttpClientCommonOptions = {},
2664 ): Observable<any> {
2665 return this.request<any>('QUERY', url, addBody(options, body));
2666 }
2667
2668 /**
2669 * Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the

Callers 15

selectOptionViaUIFunction · 0.45
interop.spec.tsFile · 0.45
index.tsFile · 0.45
client_spec.tsFile · 0.45
by.tsFile · 0.45

Calls 2

requestMethod · 0.95
addBodyFunction · 0.85

Tested by 10

beforeEachFunction · 0.36
getDebugElementsFunction · 0.36
getCdLabelFunction · 0.36
initTestComponentFunction · 0.36
getMatchesCountElFunction · 0.36