IXWebSocket/ixwebsocket/IXWebSocketHttpHeaders.h

26 lines
541 B
C
Raw Normal View History

/*
* IXWebSocketHttpHeaders.h
* Author: Benjamin Sergeant
* Copyright (c) 2018 Machine Zone, Inc. All rights reserved.
*/
#pragma once
2019-02-15 05:11:42 +01:00
#include "IXCancellationRequest.h"
#include <string>
#include <unordered_map>
2019-02-15 05:11:42 +01:00
#include <memory>
#include <algorithm>
namespace ix
{
2019-02-15 05:11:42 +01:00
class Socket;
using WebSocketHttpHeaders = std::unordered_map<std::string, std::string>;
2019-02-15 05:11:42 +01:00
std::pair<bool, WebSocketHttpHeaders> parseHttpHeaders(
std::shared_ptr<Socket> socket,
const CancellationRequest& isCancellationRequested);
}