nxt_http_parse.h (1169:f85eea6f1050) nxt_http_parse.h (1170:830d6af7d24c)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 * Copyright (C) Valentin V. Bartenev
5 */
6
7#ifndef _NXT_HTTP_PARSER_H_INCLUDED_
8#define _NXT_HTTP_PARSER_H_INCLUDED_

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

52 nxt_mp_t *mem_pool;
53
54 nxt_str_t field_name;
55 nxt_str_t field_value;
56
57 uint32_t field_hash;
58
59 /* target with "/." */
1
2/*
3 * Copyright (C) NGINX, Inc.
4 * Copyright (C) Valentin V. Bartenev
5 */
6
7#ifndef _NXT_HTTP_PARSER_H_INCLUDED_
8#define _NXT_HTTP_PARSER_H_INCLUDED_

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

52 nxt_mp_t *mem_pool;
53
54 nxt_str_t field_name;
55 nxt_str_t field_value;
56
57 uint32_t field_hash;
58
59 /* target with "/." */
60 unsigned complex_target:1;
60 uint8_t complex_target; /* 1 bit */
61 /* target with "%" */
61 /* target with "%" */
62 unsigned quoted_target:1;
62 uint8_t quoted_target; /* 1 bit */
63 /* target with " " */
63 /* target with " " */
64 unsigned space_in_target:1;
65 /* target with "+" */
66 unsigned plus_in_target:1;
64 uint8_t space_in_target; /* 1 bit */
67
68 /* Preserve encoded '/' (%2F) and '%' (%25). */
65
66 /* Preserve encoded '/' (%2F) and '%' (%25). */
69 unsigned encoded_slashes:1;
67 uint8_t encoded_slashes; /* 1 bit */
70};
71
72
73typedef nxt_int_t (*nxt_http_field_handler_t)(void *ctx,
74 nxt_http_field_t *field,
75 uintptr_t data);
76
77

--- 62 unchanged lines hidden ---
68};
69
70
71typedef nxt_int_t (*nxt_http_field_handler_t)(void *ctx,
72 nxt_http_field_t *field,
73 uintptr_t data);
74
75

--- 62 unchanged lines hidden ---