16 #ifndef INCLUDE_NN_NLIB_HTTPSTYLEURI_H_ 17 #define INCLUDE_NN_NLIB_HTTPSTYLEURI_H_ 27 typedef std::pair<const char*, const char*>
KeyValue;
38 char (&buf)[N])
const NLIB_NOEXCEPT {
39 return this->ComposeString(buf, N);
48 bool AddQuery(
const char* key,
const char* value)
NLIB_NOEXCEPT;
56 const char* GetQueryValue(
const char* key)
const NLIB_NOEXCEPT;
58 const KeyValue* GetQueryKeyValue(
size_t i)
const NLIB_NOEXCEPT;
65 struct HttpStyleUriPrivate;
66 mutable HttpStyleUriPrivate* prv_;
70 #endif // INCLUDE_NN_NLIB_HTTPSTYLEURI_H_ http/httpsスキームを用いたURIをパースしたりURI文字列を構築したりするためのクラスです。 ...
std::pair< const char *, const char * > KeyValue
クエリのキーと値を格納する型です。
bool ComposeString(char(&buf)[N]) const noexcept
ComposeString(buf, N) を呼び出します。
HttpStyleUri() noexcept
デフォルトコンストラクタです。オブジェクトを初期化します。
#define NLIB_NOEXCEPT
環境に合わせてnoexcept 又は同等の定義がされます。
一般的なURIをパースしたり構築したりするためのクラスです。
#define NLIB_FINAL
利用可能であればfinalが定義されます。そうでない場合は空文字列です。