http-response.h revision 9e7bf91667639a2390207ab4d90bf88e2afcec2a
#ifndef HTTP_RESPONSE_H
#define HTTP_RESPONSE_H
struct http_response_header {
const char *key;
const char *value;
size_t size;
};
ARRAY_DEFINE_TYPE(http_response_header, struct http_response_header);
struct http_response {
unsigned char version_major;
unsigned char version_minor;
unsigned int status;
const char *reason;
const char *location;
time_t date;
struct istream *payload;
ARRAY_TYPE(http_response_header) headers;
ARRAY_TYPE(const_string) connection_options;
unsigned int connection_close:1;
};
#endif