@@ -42,6 +42,7 @@ void UNIXSocketRequest::download(std::variant<TRequestParameters<std::string>,
4242 GetRequest::builder (FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))
4343 .url (arg.url .url (), arg.secureCommunication )
4444 .unixSocketPath (arg.url .unixSocketPath ())
45+ .appendHeaders (arg.httpHeaders )
4546 .timeout (timeout)
4647 .userAgent (userAgent)
4748 .outputFile (outputFile)
@@ -102,6 +103,7 @@ void UNIXSocketRequest::post(std::variant<TRequestParameters<std::string>,
102103 FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))};
103104 req.url (arg.url .url (), arg.secureCommunication )
104105 .unixSocketPath (arg.url .unixSocketPath ())
106+ .appendHeaders (arg.httpHeaders )
105107 .timeout (timeout)
106108 .userAgent (userAgent)
107109 .template postData <const std::string&>(arg.data )
@@ -128,6 +130,7 @@ void UNIXSocketRequest::post(std::variant<TRequestParameters<std::string>,
128130 FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))};
129131 req.url (arg.url .url (), arg.secureCommunication )
130132 .unixSocketPath (arg.url .unixSocketPath ())
133+ .appendHeaders (arg.httpHeaders )
131134 .timeout (timeout)
132135 .userAgent (userAgent)
133136 .template postData <std::string_view>(arg.data )
@@ -156,6 +159,7 @@ void UNIXSocketRequest::post(std::variant<TRequestParameters<std::string>,
156159 FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))};
157160 req.url (arg.url .url (), arg.secureCommunication )
158161 .unixSocketPath (arg.url .unixSocketPath ())
162+ .appendHeaders (arg.httpHeaders )
159163 .timeout (timeout)
160164 .userAgent (userAgent)
161165 .template postData <const std::string&>(data)
@@ -234,6 +238,7 @@ void UNIXSocketRequest::get(std::variant<TRequestParameters<std::string>,
234238 GetRequest::builder (FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))};
235239 req.url (arg.url .url (), arg.secureCommunication )
236240 .unixSocketPath (arg.url .unixSocketPath ())
241+ .appendHeaders (arg.httpHeaders )
237242 .timeout (timeout)
238243 .userAgent (userAgent)
239244 .outputFile (outputFile)
@@ -309,6 +314,7 @@ void UNIXSocketRequest::put(std::variant<TRequestParameters<std::string>,
309314 FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))};
310315 req.url (arg.url .url (), arg.secureCommunication )
311316 .unixSocketPath (arg.url .unixSocketPath ())
317+ .appendHeaders (arg.httpHeaders )
312318 .timeout (timeout)
313319 .userAgent (userAgent)
314320 .template postData <const std::string&>(arg.data )
@@ -336,6 +342,7 @@ void UNIXSocketRequest::put(std::variant<TRequestParameters<std::string>,
336342 FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))};
337343 req.url (arg.url .url (), arg.secureCommunication )
338344 .unixSocketPath (arg.url .unixSocketPath ())
345+ .appendHeaders (arg.httpHeaders )
339346 .timeout (timeout)
340347 .userAgent (userAgent)
341348 .template postData <std::string_view>(arg.data )
@@ -364,6 +371,7 @@ void UNIXSocketRequest::put(std::variant<TRequestParameters<std::string>,
364371 FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))};
365372 req.url (arg.url .url (), arg.secureCommunication )
366373 .template postData <const std::string&>(data)
374+ .unixSocketPath (arg.url .unixSocketPath ())
367375 .appendHeaders (arg.httpHeaders )
368376 .timeout (timeout)
369377 .userAgent (userAgent)
@@ -445,6 +453,7 @@ void UNIXSocketRequest::patch(std::variant<TRequestParameters<std::string>,
445453 FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))};
446454 req.url (arg.url .url (), arg.secureCommunication )
447455 .unixSocketPath (arg.url .unixSocketPath ())
456+ .appendHeaders (arg.httpHeaders )
448457 .timeout (timeout)
449458 .userAgent (userAgent)
450459 .template postData <const std::string&>(arg.data )
@@ -472,6 +481,7 @@ void UNIXSocketRequest::patch(std::variant<TRequestParameters<std::string>,
472481 FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))};
473482 req.url (arg.url .url (), arg.secureCommunication )
474483 .unixSocketPath (arg.url .unixSocketPath ())
484+ .appendHeaders (arg.httpHeaders )
475485 .timeout (timeout)
476486 .userAgent (userAgent)
477487 .template postData <std::string_view>(arg.data )
@@ -500,6 +510,7 @@ void UNIXSocketRequest::patch(std::variant<TRequestParameters<std::string>,
500510 FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))};
501511 req.url (arg.url .url (), arg.secureCommunication )
502512 .unixSocketPath (arg.url .unixSocketPath ())
513+ .appendHeaders (arg.httpHeaders )
503514 .timeout (timeout)
504515 .userAgent (userAgent)
505516 .template postData <const std::string&>(data)
@@ -581,6 +592,7 @@ void UNIXSocketRequest::delete_(std::variant<TRequestParameters<std::string>,
581592 FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))};
582593 req.url (arg.url .url (), arg.secureCommunication )
583594 .unixSocketPath (arg.url .unixSocketPath ())
595+ .appendHeaders (arg.httpHeaders )
584596 .timeout (timeout)
585597 .userAgent (userAgent)
586598 .template postData <const std::string&>(arg.data )
@@ -608,6 +620,7 @@ void UNIXSocketRequest::delete_(std::variant<TRequestParameters<std::string>,
608620 FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))};
609621 req.url (arg.url .url (), arg.secureCommunication )
610622 .unixSocketPath (arg.url .unixSocketPath ())
623+ .appendHeaders (arg.httpHeaders )
611624 .timeout (timeout)
612625 .userAgent (userAgent)
613626 .template postData <std::string_view>(arg.data )
@@ -635,6 +648,7 @@ void UNIXSocketRequest::delete_(std::variant<TRequestParameters<std::string>,
635648 auto req {DeleteRequest::builder (
636649 FactoryRequestWrapper<wrapperType>::create (response, handlerType, shouldRun))};
637650 req.url (arg.url .url (), arg.secureCommunication )
651+ .unixSocketPath (arg.url .unixSocketPath ())
638652 .template postData <const std::string&>(data)
639653 .appendHeaders (arg.httpHeaders )
640654 .timeout (timeout)
0 commit comments