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
13#include "sbuf/forward.h"
14
15class HttpHeader;
16
23bool httpHeaderParseOffset(const char *start, int64_t *offPtr, char **endPtr = nullptr);
24
25bool httpHeaderHasConnDir(const HttpHeader * hdr, const SBuf &directive);
26int httpHeaderParseInt(const char *start, int *val);
27void httpHeaderPutStrf(HttpHeader * hdr, Http::HdrType id, const char *fmt,...) PRINTF_FORMAT_ARG3;
28
29#endif /* SQUID_SRC_HTTPHEADERTOOLS_H */
30
bool httpHeaderParseOffset(const char *start, int64_t *offPtr, char **endPtr=nullptr)
int httpHeaderParseInt(const char *start, int *val)
void httpHeaderPutStrf(HttpHeader *hdr, Http::HdrType id, const char *fmt,...) PRINTF_FORMAT_ARG3
bool httpHeaderHasConnDir(const HttpHeader *hdr, const SBuf &directive)
Definition SBuf.h:94
#define PRINTF_FORMAT_ARG3