Squid Web Cache
master
Loading...
Searching...
No Matches
HttpHeaderTools.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3
*
4
* Squid software is distributed under GPLv2+ license and includes
5
* contributions from numerous individuals and organizations.
6
* Please see the COPYING and CONTRIBUTORS files for details.
7
*/
8
9
#ifndef SQUID_SRC_HTTPHEADERTOOLS_H
10
#define SQUID_SRC_HTTPHEADERTOOLS_H
11
12
#include "
http/RegisteredHeaders.h
"
13
#include "
sbuf/forward.h
"
14
15
class
HttpHeader
;
16
23
bool
httpHeaderParseOffset
(
const
char
*start, int64_t *offPtr,
char
**endPtr =
nullptr
);
24
25
bool
httpHeaderHasConnDir
(
const
HttpHeader
* hdr,
const
SBuf
&directive);
26
int
httpHeaderParseInt
(
const
char
*start,
int
*val);
27
void
httpHeaderPutStrf
(
HttpHeader
* hdr,
Http::HdrType
id
,
const
char
*fmt,...)
PRINTF_FORMAT_ARG3
;
28
29
#endif
/* SQUID_SRC_HTTPHEADERTOOLS_H */
30
httpHeaderParseOffset
bool httpHeaderParseOffset(const char *start, int64_t *offPtr, char **endPtr=nullptr)
Definition
HttpHeaderTools.cc:98
httpHeaderParseInt
int httpHeaderParseInt(const char *start, int *val)
Definition
HttpHeaderTools.cc:84
httpHeaderPutStrf
void httpHeaderPutStrf(HttpHeader *hdr, Http::HdrType id, const char *fmt,...) PRINTF_FORMAT_ARG3
Definition
HttpHeaderTools.cc:25
httpHeaderHasConnDir
bool httpHeaderHasConnDir(const HttpHeader *hdr, const SBuf &directive)
Definition
HttpHeaderTools.cc:62
RegisteredHeaders.h
HttpHeader
Definition
HttpHeader.h:75
SBuf
Definition
SBuf.h:94
PRINTF_FORMAT_ARG3
#define PRINTF_FORMAT_ARG3
Definition
compat_shared.h:243
Http::HdrType
HdrType
Definition
RegisteredHeaders.h:21
forward.h
squid
src
HttpHeaderTools.h
Generated by
1.9.8