24 lines
558 B
C++
24 lines
558 B
C++
/*
|
|
* IXWebSocketHttpHeaders.h
|
|
* Author: Benjamin Sergeant
|
|
* Copyright (c) 2018 Machine Zone, Inc. All rights reserved.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "IXCancellationRequest.h"
|
|
#include "IXStrCaseCompare.h"
|
|
#include <map>
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace ix
|
|
{
|
|
class Socket;
|
|
|
|
using WebSocketHttpHeaders = std::map<std::string, std::string, CaseInsensitiveLess>;
|
|
|
|
std::pair<bool, WebSocketHttpHeaders> parseHttpHeaders(
|
|
std::unique_ptr<Socket>& socket, const CancellationRequest& isCancellationRequested);
|
|
} // namespace ix
|