method WebClient.prototype.withHeaders WebClient.prototype.withHeaders(headers: Record<string, string>): WebClient Returns a new WebClient with the given headers merged into existing ones. Parameters headers: Record<string, string> Return Type WebClient