nxt_upstream_source.h (65:10688b89aa16) nxt_upstream_source.h (703:2d536dde84d2)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_UPSTREAM_SOURCE_H_INCLUDED_
8#define _NXT_UPSTREAM_SOURCE_H_INCLUDED_

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

64 nxt_lvlhsh_t header_hash;
65 nxt_stream_source_t *stream;
66};
67
68
69#define NXT_UPSTREAM_NAME_VALUE_MIN_SIZE \
70 offsetof(nxt_http_upstream_header_t, name)
71
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_UPSTREAM_SOURCE_H_INCLUDED_
8#define _NXT_UPSTREAM_SOURCE_H_INCLUDED_

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

64 nxt_lvlhsh_t header_hash;
65 nxt_stream_source_t *stream;
66};
67
68
69#define NXT_UPSTREAM_NAME_VALUE_MIN_SIZE \
70 offsetof(nxt_http_upstream_header_t, name)
71
72#define nxt_upstream_name_value(s) sizeof(s) - 1, s
72#define nxt_upstream_name_value(s) nxt_length(s), s
73
74
75NXT_EXPORT nxt_int_t nxt_upstream_header_hash_add(nxt_mp_t *mp,
76 nxt_lvlhsh_t *lh, const nxt_upstream_name_value_t *unv, nxt_uint_t n);
77NXT_EXPORT nxt_int_t nxt_upstream_name_value_ignore(nxt_upstream_source_t *us,
78 nxt_name_value_t *nv);
79
80NXT_EXPORT extern const nxt_lvlhsh_proto_t nxt_upstream_header_hash_proto;
81
82
83#endif /* _NXT_UPSTREAM_SOURCE_H_INCLUDED_ */
73
74
75NXT_EXPORT nxt_int_t nxt_upstream_header_hash_add(nxt_mp_t *mp,
76 nxt_lvlhsh_t *lh, const nxt_upstream_name_value_t *unv, nxt_uint_t n);
77NXT_EXPORT nxt_int_t nxt_upstream_name_value_ignore(nxt_upstream_source_t *us,
78 nxt_name_value_t *nv);
79
80NXT_EXPORT extern const nxt_lvlhsh_proto_t nxt_upstream_header_hash_proto;
81
82
83#endif /* _NXT_UPSTREAM_SOURCE_H_INCLUDED_ */