完成cache参数解析部分的编码。

This commit is contained in:
zhengchao
2018-11-07 21:05:21 +08:00
parent 8bfecea928
commit d6862e4ef7
4 changed files with 221 additions and 13 deletions

View File

@@ -315,6 +315,13 @@ static inline const char * tfe_http_std_field_read(const struct tfe_http_half *
tmp_name.field_name=NULL;
return tfe_http_field_read(half, &tmp_name);
}
static inline const char * tfe_http_nonstd_field_read(const struct tfe_http_half * half, const char* field)
{
struct http_field_name tmp_name;
tmp_name.field_id=TFE_HTTP_UNKNOWN_FIELD;
tmp_name.field_name=field;
return tfe_http_field_read(half, &tmp_name);
}
static inline int tfe_http_field_write(struct tfe_http_half * half,
const struct http_field_name * name, const char * value)