Commit 3404553b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Expose http_IsHdr(), it is useful to iterate over particular headers.

parent 473b37a3
...@@ -585,6 +585,7 @@ void HTTP_Clone(struct http *to, const struct http * const fm); ...@@ -585,6 +585,7 @@ void HTTP_Clone(struct http *to, const struct http * const fm);
void HTTP_Dup(struct http *to, const struct http * const fm); void HTTP_Dup(struct http *to, const struct http * const fm);
struct http *HTTP_create(void *p, uint16_t nhttp, unsigned); struct http *HTTP_create(void *p, uint16_t nhttp, unsigned);
const char *http_Status2Reason(unsigned, const char **); const char *http_Status2Reason(unsigned, const char **);
int http_IsHdr(const txt *hh, hdr_t hdr);
unsigned http_EstimateWS(const struct http *fm, unsigned how); unsigned http_EstimateWS(const struct http *fm, unsigned how);
void http_PutResponse(struct http *to, const char *proto, uint16_t status, void http_PutResponse(struct http *to, const char *proto, uint16_t status,
const char *response); const char *response);
......
...@@ -423,7 +423,7 @@ http_PutField(struct http *to, int field, const char *string) ...@@ -423,7 +423,7 @@ http_PutField(struct http *to, int field, const char *string)
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
static int int
http_IsHdr(const txt *hh, hdr_t hdr) http_IsHdr(const txt *hh, hdr_t hdr)
{ {
unsigned l; unsigned l;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment