Lines Matching refs:value

49   Header(std::string name, std::string value, bool no_index = false,
52 value(std::move(value)),
59 return name == other.name && value == other.value;
63 return name < rhs.name || (name == rhs.name && value < rhs.value);
67 std::string value;
73 HeaderRef(const StringRef &name, const StringRef &value,
75 : name(name), value(value), token(token), no_index(no_index) {}
80 return name == other.name && value == other.value;
84 return name < rhs.name || (name == rhs.name && value < rhs.value);
88 StringRef value;
107 // Returns true if |value| is LWS
108 bool lws(const char *value);
110 // Copies the |field| component value from |u| and |url| to the
117 const uint8_t *value, size_t valuelen,
120 // Add name/value pairs to |nva|. If |no_index| is true, this
121 // name/value pair won't be indexed when it is forwarded to the next
122 // hop. This function strips white spaces around |value|.
124 const uint8_t *value, size_t valuelen, bool no_index,
132 // Returns true if the value of |nv| is not empty.
135 // Creates nghttp2_nv using |name| and |value| and returns it. The
136 // returned value only references the data pointer to name.c_str() and
137 // value.c_str(). If |no_index| is true, nghttp2_nv flags member has
139 nghttp2_nv make_nv(const std::string &name, const std::string &value,
142 nghttp2_nv make_nv(const StringRef &name, const StringRef &value,
145 nghttp2_nv make_nv_nocopy(const std::string &name, const std::string &value,
148 nghttp2_nv make_nv_nocopy(const StringRef &name, const StringRef &value,
151 // Create nghttp2_nv from string literal |name| and |value|.
153 constexpr nghttp2_nv make_nv_ll(const char (&name)[N], const char (&value)[M]) {
154 return {(uint8_t *)name, (uint8_t *)value, N - 1, M - 1,
158 // Create nghttp2_nv from string literal |name| and c-string |value|.
160 nghttp2_nv make_nv_lc(const char (&name)[N], const char *value) {
161 return {(uint8_t *)name, (uint8_t *)value, N - 1, strlen(value),
166 nghttp2_nv make_nv_lc_nocopy(const char (&name)[N], const char *value) {
167 return {(uint8_t *)name, (uint8_t *)value, N - 1, strlen(value),
172 // |value|.
174 nghttp2_nv make_nv_ls(const char (&name)[N], const std::string &value) {
175 return {(uint8_t *)name, (uint8_t *)value.c_str(), N - 1, value.size(),
180 nghttp2_nv make_nv_ls_nocopy(const char (&name)[N], const std::string &value) {
181 return {(uint8_t *)name, (uint8_t *)value.c_str(), N - 1, value.size(),
186 nghttp2_nv make_nv_ls_nocopy(const char (&name)[N], const StringRef &value) {
187 return {(uint8_t *)name, (uint8_t *)value.c_str(), N - 1, value.size(),
258 // Dumps name/value pairs in |nv| to |out|. The |nv| must be
262 // Dumps name/value pairs in |nva| to |out|.
265 // Dumps name/value pairs in |nva| to |out|.
276 // host or :authority header field value in the request. The
278 // interface. Rewrite is done only if location header field value
296 // member to get maximum value.
366 // Returns next URI-reference in Link header field value |src|. If no
434 // Returns true if te header field value |s| contains "trailers".
437 // Creates Sec-WebSocket-Accept value for |key|. The capacity of
447 // Returns true if transfer-encoding field value |s| conforms RFC
448 // strictly. This function does not allow empty value, BWS, and empty