You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
558 B

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