]> git.ipfire.org Git - thirdparty/squid.git/blame - src/http/ProtocolVersion.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / http / ProtocolVersion.h
CommitLineData
bbc27441
AJ
1/*
2 * Copyright (C) 1996-2014 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
526ed14e
AJ
9#ifndef SQUID_HTTP_PROTOCOLVERSION_H
10#define SQUID_HTTP_PROTOCOLVERSION_H
11
12#include "anyp/ProtocolVersion.h"
13
14namespace Http
15{
16
2592bc70
AJ
17/// HTTP version label information
18inline AnyP::ProtocolVersion
19ProtocolVersion(unsigned int aMajor, unsigned int aMinor)
20{
21 return AnyP::ProtocolVersion(AnyP::PROTO_HTTP,aMajor,aMinor);
22}
23
526ed14e 24/**
2592bc70 25 * HTTP version label information.
2b49326a 26 *
2592bc70 27 * Squid being conditionally compliant with RFC 7230
2b49326a
AJ
28 * on both client and server connections the default
29 * value is HTTP/1.1.
526ed14e 30 */
2592bc70
AJ
31inline AnyP::ProtocolVersion
32ProtocolVersion()
526ed14e 33{
f53969cc 34 return AnyP::ProtocolVersion(AnyP::PROTO_HTTP,1,1);
2592bc70 35}
526ed14e
AJ
36
37}; // namespace Http
38
39#endif /* SQUID_HTTP_PROTOCOLVERSION_H */
f53969cc 40