Lines Matching refs:value

33     char *value;                        /*!< value */  member
69 esp_err_t http_header_get(http_header_handle_t header, const char *key, char **value) in http_header_get() argument
75 *value = item->value; in http_header_get()
77 *value = NULL; in http_header_get()
83 …tic esp_err_t http_header_new_item(http_header_handle_t header, const char *key, const char *value) in http_header_new_item() argument
92 http_utils_assign_string(&item->value, value, -1); in http_header_new_item()
93 HTTP_MEM_CHECK(TAG, item->value, goto _header_new_item_exit); in http_header_new_item()
94 http_utils_trim_whitespace(&item->value); in http_header_new_item()
99 free(item->value); in http_header_new_item()
104 esp_err_t http_header_set(http_header_handle_t header, const char *key, const char *value) in http_header_set() argument
108 if (value == NULL) { in http_header_set()
115 free(item->value); in http_header_set()
116 item->value = strdup(value); in http_header_set()
117 http_utils_trim_whitespace(&item->value); in http_header_set()
120 return http_header_new_item(header, key, value); in http_header_set()
149 free(item->value); in http_header_delete()
185 if (item->value && idx >= index) { in http_header_generate_string()
187 siz += strlen(item->value); in http_header_generate_string()
213 if (item->value && idx >= index && idx < ret_idx) { in http_header_generate_string()
214 …str_len += snprintf(buffer + str_len, *buffer_len - str_len, "%s: %s\r\n", item->key, item->value); in http_header_generate_string()
232 free(item->value); in http_header_clean()