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

Method options

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

* Constructs an \`Observable\` that, when subscribed, causes the configured * \`OPTIONS\` request to execute on the server. This method allows the client * to determine the supported HTTP methods and other capabilities of an endpoint, * without implying a resource action. See the individual

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

Source from the content-addressed store, hash-verified

1760 * details on the return type.
1761 */
1762 options(
1763 url: string,
1764 options: {
1765 observe?: 'body' | 'events' | 'response';
1766 responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
1767 } & HttpClientCommonOptions = {},
1768 ): Observable<any> {
1769 return this.request<any>('OPTIONS', url, options as any);
1770 }
1771
1772 /**
1773 * Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns

Callers 1

SelectClass · 0.80

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected