1 | /* |
---|---|
2 | * IXWebSocketHttpHeaders.h |
3 | * Author: Benjamin Sergeant |
4 | * Copyright (c) 2018 Machine Zone, Inc. All rights reserved. |
5 | */ |
6 | |
7 | #pragma once |
8 | |
9 | #include "IXCancellationRequest.h" |
10 | #include "IXStrCaseCompare.h" |
11 | #include <map> |
12 | #include <memory> |
13 | #include <string> |
14 | |
15 | namespace ix |
16 | { |
17 | class Socket; |
18 | |
19 | using WebSocketHttpHeaders = std::map<std::string, std::string, CaseInsensitiveLess>; |
20 | |
21 | std::pair<bool, WebSocketHttpHeaders> parseHttpHeaders( |
22 | std::unique_ptr<Socket>& socket, const CancellationRequest& isCancellationRequested); |
23 | } // namespace ix |
24 |