xbmc
HTTPPythonRequest.h
1 /*
2  * Copyright (C) 2015-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "XBDateTime.h"
12 #include "network/httprequesthandler/IHTTPRequestHandler.h"
13 
14 #include <map>
15 #include <stdint.h>
16 #include <string>
17 
18 typedef struct HTTPPythonRequest
19 {
20  struct MHD_Connection *connection;
21  std::string hostname;
22  uint16_t port;
23  std::string url;
24  std::string path;
25  std::string file;
26  HTTPMethod method;
27  std::string version;
28  std::multimap<std::string, std::string> headerValues;
29  std::map<std::string, std::string> getValues;
30  std::map<std::string, std::string> postValues;
31  std::string requestContent;
32  CDateTime requestTime;
33  CDateTime lastModifiedTime;
34 
35  HTTPResponseType responseType;
36  int responseStatus;
37  std::string responseContentType;
38  std::string responseData;
39  size_t responseLength;
40  std::multimap<std::string, std::string> responseHeaders;
41  std::multimap<std::string, std::string> responseHeadersError;
Definition: HTTPPythonRequest.h:18
DateTime class, which uses FileTime as it&#39;s base.
Definition: XBDateTime.h:63