summaryrefslogtreecommitdiffstats
path: root/src/HTTP/HTTPMessage.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2020-04-13 18:38:06 +0200
committerAlexander Harkness <me@bearbin.net>2020-04-16 22:07:48 +0200
commit9ee47e59995f858ec531b3ee467f131594e4ba1f (patch)
treef005d8af4a0362d7eab8a96a71aca0d73275f8e1 /src/HTTP/HTTPMessage.h
parentPrevent crash when breeding (diff)
downloadcuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar
cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.gz
cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.bz2
cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.lz
cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.xz
cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.zst
cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.zip
Diffstat (limited to '')
-rw-r--r--src/HTTP/HTTPMessage.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/HTTP/HTTPMessage.h b/src/HTTP/HTTPMessage.h
index be767a55a..20deab5ab 100644
--- a/src/HTTP/HTTPMessage.h
+++ b/src/HTTP/HTTPMessage.h
@@ -43,7 +43,9 @@ public:
size_t GetContentLength(void) const { return m_ContentLength; }
protected:
- typedef std::map<AString, AString> cNameValueMap;
+
+ using cNameValueMap = std::map<AString, AString>;
+
eKind m_Kind;
@@ -64,12 +66,13 @@ protected:
/** Stores outgoing response headers and serializes them to an HTTP data stream. */
-class cHTTPOutgoingResponse :
+class cHTTPOutgoingResponse:
public cHTTPMessage
{
- typedef cHTTPMessage super;
+ using Super = cHTTPMessage;
public:
+
cHTTPOutgoingResponse(void);
/** Appends the response to the specified datastream - response line and headers.
@@ -85,8 +88,10 @@ public:
class cHTTPIncomingRequest:
public cHTTPMessage
{
- typedef cHTTPMessage Super;
+ using Super = cHTTPMessage;
+
public:
+
/** Base class for anything that can be used as the UserData for the request. */
class cUserData
{
@@ -94,7 +99,7 @@ public:
// Force a virtual destructor in descendants:
virtual ~cUserData() {}
};
- typedef std::shared_ptr<cUserData> cUserDataPtr;
+ using cUserDataPtr = std::shared_ptr<cUserData>;
/** Creates a new instance of the class, containing the method and URL provided by the client. */