16 #ifndef INCLUDE_NN_NLIB_HTTPSTYLEURI_H_ 17 #define INCLUDE_NN_NLIB_HTTPSTYLEURI_H_ 22 #include "nn/nlib/Swap.h" 28 typedef std::pair<const char*, const char*>
KeyValue;
40 char (&buf)[N])
const NLIB_NOEXCEPT {
41 return this->ComposeString(buf, N);
50 bool AddQuery(
const char* key,
const char* value)
NLIB_NOEXCEPT;
58 const char* GetQueryValue(
const char* key)
const NLIB_NOEXCEPT;
60 const KeyValue* GetQueryKeyValue(
size_t i)
const NLIB_NOEXCEPT;
71 struct HttpStyleUriPrivate;
72 mutable HttpStyleUriPrivate* prv_;
78 #endif // INCLUDE_NN_NLIB_HTTPSTYLEURI_H_ #define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
Prohibits use of the copy constructor and assignment operator for the class specified by TypeName...
The class for parsing URIs that use the http and https schemes, and for constructing URI strings...
std::pair< const char *, const char * > KeyValue
The type that stores query keys and values.
bool ComposeString(char(&buf)[N]) const noexcept
Calls ComposeString(buf, N).
HttpStyleUri() noexcept
Instantiates the object with default parameters (default constructor). Initializes an object...
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
A file that contains the configuration information for each development environment.
The class for parsing and constructing regular URIs.
Defines the class for handling URIs.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.