summaryrefslogtreecommitdiffstats
path: root/src/Protocol/ProtocolRecognizer.h
diff options
context:
space:
mode:
authorRorkh <78957156+Rorkh@users.noreply.github.com>2022-01-27 01:56:45 +0100
committerGitHub <noreply@github.com>2022-01-27 01:56:45 +0100
commit5fe1fe899bfe55b1c27fb03a7d7e76b0b67b9cc7 (patch)
tree555ed9a75b3d3c168fcd4b1461c8c6965e32cf3d /src/Protocol/ProtocolRecognizer.h
parentUpdate to libdeflate 1.9 (diff)
downloadcuberite-5fe1fe899bfe55b1c27fb03a7d7e76b0b67b9cc7.tar
cuberite-5fe1fe899bfe55b1c27fb03a7d7e76b0b67b9cc7.tar.gz
cuberite-5fe1fe899bfe55b1c27fb03a7d7e76b0b67b9cc7.tar.bz2
cuberite-5fe1fe899bfe55b1c27fb03a7d7e76b0b67b9cc7.tar.lz
cuberite-5fe1fe899bfe55b1c27fb03a7d7e76b0b67b9cc7.tar.xz
cuberite-5fe1fe899bfe55b1c27fb03a7d7e76b0b67b9cc7.tar.zst
cuberite-5fe1fe899bfe55b1c27fb03a7d7e76b0b67b9cc7.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/ProtocolRecognizer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Protocol/ProtocolRecognizer.h b/src/Protocol/ProtocolRecognizer.h
index 0a923e78f..8b7848199 100644
--- a/src/Protocol/ProtocolRecognizer.h
+++ b/src/Protocol/ProtocolRecognizer.h
@@ -59,6 +59,9 @@ private:
/** Handles and responds to unsupported clients sending pings. */
void HandleIncomingDataInOldPingResponseStage(cClientHandle & a_Client, ContiguousByteBufferView a_Data);
+ /* Checks if incoming data is an HTTP request and handles it if it is. */
+ bool TryHandleHTTPRequest(cClientHandle & a_Client, ContiguousByteBuffer & a_Data);
+
/** Tries to recognize a protocol in the lengthed family (1.7+), based on m_Buffer.
Returns a cProtocol_XXX instance if recognized. */
std::unique_ptr<cProtocol> TryRecognizeLengthedProtocol(cClientHandle & a_Client);