Mercurial > dovecot > core-2.2
view src/lib-http/http-response-parser.h @ 19604:c996bc091c6b
master: Do not close stdout if going foreground
This lets one to use /dev/stdout for logging. Mainly
useful for testing purposes where we can generate
log output to stdout and use tee to write it to a
file for later examination.
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Mon, 18 Jan 2016 15:50:23 +0200 |
parents | c3884a6acde6 |
children | 36a38929734d |
line wrap: on
line source
#ifndef HTTP_RESPONSE_PARSER_H #define HTTP_RESPONSE_PARSER_H #include "http-response.h" struct http_header_limits; struct http_response_parser; struct http_response_parser * http_response_parser_init(struct istream *input, const struct http_header_limits *hdr_limits) ATTR_NULL(2); void http_response_parser_deinit(struct http_response_parser **_parser); int http_response_parse_next(struct http_response_parser *parser, enum http_response_payload_type payload_type, struct http_response *response, const char **error_r); #endif