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 
void httpHeaderPutStrf(HttpHeader *hdr, Http::HdrType id, const char *fmt,...) PRINTF_FORMAT_ARG3
bool httpHeaderParseOffset(const char *start, int64_t *offPtr, char **endPtr=nullptr)
Definition: SBuf.h:93
int httpHeaderParseInt(const char *start, int *val)
#define PRINTF_FORMAT_ARG3
bool httpHeaderHasConnDir(const HttpHeader *hdr, const SBuf &directive)

 

Introduction

Documentation

Support

Miscellaneous