LeviLamina
Loading...
Searching...
No Matches
HeaderCollection.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace Bedrock::Http {
6
7class HeaderCollection {
8public:
9 // member variables
10 // NOLINTBEGIN
12 // NOLINTEND
13
14public:
15 // prevent constructor by default
16 HeaderCollection& operator=(HeaderCollection const&);
17 HeaderCollection(HeaderCollection const&);
18 HeaderCollection();
19
20public:
21 // member functions
22 // NOLINTBEGIN
23 MCNAPI void _addHeader(::std::string const& headerName, ::std::string const& headerValue, bool setValue);
24
25 MCNAPI void add(::std::string const& headerName, ::std::string const& headerValue);
26
27 MCNAPI ::std::string const& get(::std::string const& headerName) const;
28
29#ifdef LL_PLAT_C
30 MCNAPI void merge(::Bedrock::Http::HeaderCollection rhs);
31#endif
32
33 MCNAPI void set(::std::string const& headerName, ::std::string const& headerValue);
34
35#ifdef LL_PLAT_C
36 MCNAPI void setNoSafetyChecks(::std::string const& headerName, ::std::string const& headerValue);
37#endif
38
40 // NOLINTEND
41
42public:
43 // destructor thunk
44 // NOLINTBEGIN
45 MCNAPI void $dtor();
46 // NOLINTEND
47};
48
49} // namespace Bedrock::Http
Definition HeaderCollection.h:7
MCAPI void _addHeader(::std::string const &headerName, ::std::string const &headerValue, bool setValue)
MCAPI void add(::std::string const &headerName, ::std::string const &headerValue)
MCAPI void set(::std::string const &headerName, ::std::string const &headerValue)
MCAPI::std::string const & get(::std::string const &headerName) const
Definition Alias.h:14