-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dpl 706 swish with uds #1
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Kuba, few request changes
@@ -0,0 +1,15 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this file if it's something auto-generated
@@ -66,6 +66,10 @@ class Client { | |||
Configuration configuration{}; | |||
|
|||
Client() : curl_handle_(curl_easy_init()) { assert(curl_handle_ != nullptr); } | |||
// Set Unix domain socket path | |||
void SetUnixSocketPath(const std::string& socket_path) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better call it SetUnixDomainSocketPath
@@ -30,20 +30,25 @@ | |||
#include <string> | |||
#include <vector> | |||
|
|||
#include <cstddef> // for std::byte | |||
#include <memory> // for std::allocator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments are redundant please remove
template <typename ByteType = std::byte, | ||
typename ByteTraits = std::char_traits<char>, // Default ByteTraits for char is used | ||
typename Allocator = std::allocator<ByteType>> | ||
class BasicResponseBuffer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit style change, class and template better be at same indent level, (class is not inside template, no need to indent they are at same level)
using string_type = std::basic_string<byte_type, byte_traits, allocator_type>; | ||
typename ByteTraits = std::char_traits<ByteType>, | ||
typename Allocator = std::allocator<ByteType>> | ||
class BasicRequestHeader { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as previous comment
Support for Unix domain sockets (client)