Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
3404553b
Commit
3404553b
authored
Dec 20, 2021
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose http_IsHdr(), it is useful to iterate over particular headers.
parent
473b37a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
cache.h
bin/varnishd/cache/cache.h
+1
-0
cache_http.c
bin/varnishd/cache/cache_http.c
+1
-1
No files found.
bin/varnishd/cache/cache.h
View file @
3404553b
...
@@ -585,6 +585,7 @@ void HTTP_Clone(struct http *to, const struct http * const fm);
...
@@ -585,6 +585,7 @@ void HTTP_Clone(struct http *to, const struct http * const fm);
void
HTTP_Dup
(
struct
http
*
to
,
const
struct
http
*
const
fm
);
void
HTTP_Dup
(
struct
http
*
to
,
const
struct
http
*
const
fm
);
struct
http
*
HTTP_create
(
void
*
p
,
uint16_t
nhttp
,
unsigned
);
struct
http
*
HTTP_create
(
void
*
p
,
uint16_t
nhttp
,
unsigned
);
const
char
*
http_Status2Reason
(
unsigned
,
const
char
**
);
const
char
*
http_Status2Reason
(
unsigned
,
const
char
**
);
int
http_IsHdr
(
const
txt
*
hh
,
hdr_t
hdr
);
unsigned
http_EstimateWS
(
const
struct
http
*
fm
,
unsigned
how
);
unsigned
http_EstimateWS
(
const
struct
http
*
fm
,
unsigned
how
);
void
http_PutResponse
(
struct
http
*
to
,
const
char
*
proto
,
uint16_t
status
,
void
http_PutResponse
(
struct
http
*
to
,
const
char
*
proto
,
uint16_t
status
,
const
char
*
response
);
const
char
*
response
);
...
...
bin/varnishd/cache/cache_http.c
View file @
3404553b
...
@@ -423,7 +423,7 @@ http_PutField(struct http *to, int field, const char *string)
...
@@ -423,7 +423,7 @@ http_PutField(struct http *to, int field, const char *string)
/*--------------------------------------------------------------------*/
/*--------------------------------------------------------------------*/
static
int
int
http_IsHdr
(
const
txt
*
hh
,
hdr_t
hdr
)
http_IsHdr
(
const
txt
*
hh
,
hdr_t
hdr
)
{
{
unsigned
l
;
unsigned
l
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment