MCPcopy
hub / github.com/angular/angular / get

Method get

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

* Constructs an observable that, when subscribed, causes the configured * `GET` request to execute on the server. See the individual overloads for * details on the return type.

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

Source from the content-addressed store, hash-verified

1173 * details on the return type.
1174 */
1175 get(
1176 url: string,
1177 options: {
1178 observe?: 'body' | 'events' | 'response';
1179 responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
1180 } & HttpClientCommonOptions = {},
1181 ): Observable<any> {
1182 return this.request<any>('GET', url, options as any);
1183 }
1184
1185 /**
1186 * Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and

Callers

nothing calls this directly

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected