Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
HeaderCollection.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace Bedrock::Http {
6
8public:
9 // member variables
10 // NOLINTBEGIN
11 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::string>> mData;
12 // NOLINTEND
13
14public:
15 // member functions
16 // NOLINTBEGIN
17 MCNAPI void _addHeader(::std::string const& headerName, ::std::string const& headerValue, bool setValue);
18
19 MCNAPI void add(::std::string const& headerName, ::std::string const& headerValue);
20
21 MCNAPI ::std::string const& get(::std::string const& headerName) const;
22
23#ifdef LL_PLAT_C
24 MCNAPI void merge(::Bedrock::Http::HeaderCollection rhs);
25#endif
26
27 MCNAPI void set(::std::string const& headerName, ::std::string const& headerValue);
28
29#ifdef LL_PLAT_C
30 MCNAPI void setNoSafetyChecks(::std::string const& headerName, ::std::string const& headerValue);
31#endif
32
33 MCAPI ~HeaderCollection();
34 // NOLINTEND
35
36public:
37 // destructor thunk
38 // NOLINTBEGIN
39 MCFOLD void $dtor();
40 // NOLINTEND
41};
42
43} // 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