Hyper API for C++ 0.0.19484
Hyper client library for C++ applications
Loading...
Searching...
No Matches
Endpoint.hpp
Go to the documentation of this file.
1
5#ifndef TABLEAU_HYPER_ENDPOINT_HPP
6#define TABLEAU_HYPER_ENDPOINT_HPP
7
8#include <string>
9#include <utility>
10
11namespace hyperapi {
12
14class Endpoint final {
15 public:
24 Endpoint(std::string connectionDescriptor, std::string userAgent)
25 : connectionDescriptor_(std::move(connectionDescriptor)), userAgent_(std::move(userAgent)) {
26 }
27
32 const std::string& getConnectionDescriptor() const { return connectionDescriptor_; }
33
38 const std::string& getUserAgent() const { return userAgent_; }
39
40 private:
42 std::string connectionDescriptor_;
44 std::string userAgent_;
45};
46}
47
48#endif
Describes a network endpoint at which a Hyper server is accessible.
Definition Endpoint.hpp:14
const std::string & getUserAgent() const
Returns the user agent.
Definition Endpoint.hpp:38
Endpoint(std::string connectionDescriptor, std::string userAgent)
Creates an Endpoint from the given connection descriptor.
Definition Endpoint.hpp:24
const std::string & getConnectionDescriptor() const
Returns the connection descriptor.
Definition Endpoint.hpp:32
The primary namespace of the Hyper API for C++.
Definition ByteSpan.hpp:15