MCPcopy Create free account
hub / github.com/DemonMartin/tlsClient / patch

Method patch

src/index.ts:804–817  ·  view source on GitHub ↗

* @description Send a PATCH request * @param {URL|string} url - The URL to send the request to * @param {object|string} body - The request body * @param {Partial } [options={}] - The request options * @returns {Promise } The response from the se

(
        url: URL | string,
        body: RequestBody = null,
        options: Partial<TlsClientOptions> = {},
    )

Source from the content-addressed store, hash-verified

802 * @returns {Promise<TlsClientResponse>} The response from the server
803 */
804 public async patch(
805 url: URL | string,
806 body: RequestBody = null,
807 options: Partial<TlsClientOptions> = {},
808 ): Promise<TlsClientResponse> {
809 return await this.request({
810 sessionId: this.sessionId,
811 requestUrl: this.convertUrl(url),
812 requestMethod: 'PATCH',
813 requestBody: this.convertBody(body),
814 requestCookies: [],
815 ...options,
816 });
817 }
818
819 /**
820 * @description Send an OPTIONS request

Callers

nothing calls this directly

Calls 3

requestMethod · 0.95
convertUrlMethod · 0.95
convertBodyMethod · 0.95

Tested by

no test coverage detected