MCPcopy
hub / github.com/angular/angular / options

Method options

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

1766 * details on the return type.
1767 */
1768 options(
1769 url: string,
1770 options: {
1771 observe?: 'body' | 'events' | 'response';
1772 responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
1773 } & HttpClientCommonOptions = {},
1774 ): Observable<any> {
1775 return this.request<any>('OPTIONS', url, options as any);
1776 }
1777
1778 /**
1779 * 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