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