* 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 = {},
)
| 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 |