]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/http/ProtocolVersion.h
ae51a47cca995701cc9d4d0bd1178faea9ccb340
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_HTTP_PROTOCOLVERSION_H
10 #define SQUID_HTTP_PROTOCOLVERSION_H
12 #include "anyp/ProtocolVersion.h"
17 /// HTTP version label information
18 inline AnyP::ProtocolVersion
19 ProtocolVersion(unsigned int aMajor
, unsigned int aMinor
)
21 return AnyP::ProtocolVersion(AnyP::PROTO_HTTP
,aMajor
,aMinor
);
25 * HTTP version label information.
27 * Squid being conditionally compliant with RFC 7230
28 * on both client and server connections the default
31 inline AnyP::ProtocolVersion
34 return AnyP::ProtocolVersion(AnyP::PROTO_HTTP
,1,1);
39 #endif /* SQUID_HTTP_PROTOCOLVERSION_H */