Lines Matching refs:name
43 // Creates nghttp3_nv using |name| and |value| and returns it. The
44 // returned value only references the data pointer to name.c_str() and
47 nghttp3_nv make_nv(const std::string &name, const std::string &value,
50 nghttp3_nv make_nv(const StringRef &name, const StringRef &value,
53 nghttp3_nv make_nv_nocopy(const std::string &name, const std::string &value,
56 nghttp3_nv make_nv_nocopy(const StringRef &name, const StringRef &value,
59 // Create nghttp3_nv from string literal |name| and |value|.
61 constexpr nghttp3_nv make_nv_ll(const char (&name)[N], const char (&value)[M]) {
62 return {(uint8_t *)name, (uint8_t *)value, N - 1, M - 1,
66 // Create nghttp3_nv from string literal |name| and c-string |value|.
68 nghttp3_nv make_nv_lc(const char (&name)[N], const char *value) {
69 return {(uint8_t *)name, (uint8_t *)value, N - 1, strlen(value),
74 nghttp3_nv make_nv_lc_nocopy(const char (&name)[N], const char *value) {
75 return {(uint8_t *)name, (uint8_t *)value, N - 1, strlen(value),
79 // Create nghttp3_nv from string literal |name| and std::string
82 nghttp3_nv make_nv_ls(const char (&name)[N], const std::string &value) {
83 return {(uint8_t *)name, (uint8_t *)value.c_str(), N - 1, value.size(),
88 nghttp3_nv make_nv_ls_nocopy(const char (&name)[N], const std::string &value) {
89 return {(uint8_t *)name, (uint8_t *)value.c_str(), N - 1, value.size(),
94 nghttp3_nv make_nv_ls_nocopy(const char (&name)[N], const StringRef &value) {
95 return {(uint8_t *)name, (uint8_t *)value.c_str(), N - 1, value.size(),
113 // Checks the header name/value pair using nghttp3_check_header_name()
116 int check_nv(const uint8_t *name, size_t namelen, const uint8_t *value,