nxt_http.h (1432:f650ced3012a) nxt_http.h (1459:358b957ca294)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_HTTP_H_INCLUDED_
8#define _NXT_HTTP_H_INCLUDED_

--- 231 unchanged lines hidden (view full) ---

240 return nxt_sprintf(buf, buf + NXT_HTTP_DATE_LEN,
241 "%s, %02d %s %4d %02d:%02d:%02d GMT",
242 week[tm->tm_wday], tm->tm_mday,
243 month[tm->tm_mon], tm->tm_year + 1900,
244 tm->tm_hour, tm->tm_min, tm->tm_sec);
245}
246
247
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_HTTP_H_INCLUDED_
8#define _NXT_HTTP_H_INCLUDED_

--- 231 unchanged lines hidden (view full) ---

240 return nxt_sprintf(buf, buf + NXT_HTTP_DATE_LEN,
241 "%s, %02d %s %4d %02d:%02d:%02d GMT",
242 week[tm->tm_wday], tm->tm_mday,
243 month[tm->tm_mon], tm->tm_year + 1900,
244 tm->tm_hour, tm->tm_min, tm->tm_sec);
245}
246
247
248nxt_int_t nxt_http_init(nxt_task_t *task, nxt_runtime_t *rt);
249nxt_int_t nxt_h1p_init(nxt_task_t *task, nxt_runtime_t *rt);
250nxt_int_t nxt_http_response_hash_init(nxt_task_t *task, nxt_runtime_t *rt);
248nxt_int_t nxt_http_init(nxt_task_t *task);
249nxt_int_t nxt_h1p_init(nxt_task_t *task);
250nxt_int_t nxt_http_response_hash_init(nxt_task_t *task);
251
252void nxt_http_conn_init(nxt_task_t *task, void *obj, void *data);
253nxt_http_request_t *nxt_http_request_create(nxt_task_t *task);
254void nxt_http_request_error(nxt_task_t *task, nxt_http_request_t *r,
255 nxt_http_status_t status);
256void nxt_http_request_read_body(nxt_task_t *task, nxt_http_request_t *r);
257void nxt_http_request_header_send(nxt_task_t *task, nxt_http_request_t *r,
258 nxt_work_handler_t body_handler, void *data);

--- 80 unchanged lines hidden ---
251
252void nxt_http_conn_init(nxt_task_t *task, void *obj, void *data);
253nxt_http_request_t *nxt_http_request_create(nxt_task_t *task);
254void nxt_http_request_error(nxt_task_t *task, nxt_http_request_t *r,
255 nxt_http_status_t status);
256void nxt_http_request_read_body(nxt_task_t *task, nxt_http_request_t *r);
257void nxt_http_request_header_send(nxt_task_t *task, nxt_http_request_t *r,
258 nxt_work_handler_t body_handler, void *data);

--- 80 unchanged lines hidden ---