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

Method get

packages/common/http/src/client.ts:1167–1175  ·  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

1165 * details on the return type.
1166 */
1167 get(
1168 url: string,
1169 options: {
1170 observe?: 'body' | 'events' | 'response';
1171 responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
1172 } & HttpClientCommonOptions = {},
1173 ): Observable<any> {
1174 return this.request<any>('GET', url, options as any);
1175 }
1176
1177 /**
1178 * 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