Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
IHTTPRequestHandler.h File Reference
#include "utils/HttpRangeUtils.h"
#include <map>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <microhttpd.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/types.h>

Classes

struct  HTTPRequest
 
struct  HTTPResponseDetails
 
class  IHTTPRequestHandler
 

Typedefs

using MHD_RESULT = int
 
typedef enum HTTPResponseType HTTPResponseType
 
typedef struct HTTPRequest HTTPRequest
 
typedef struct HTTPResponseDetails HTTPResponseDetails
 

Enumerations

enum  HTTPMethod { UNKNOWN , POST , GET , HEAD }
 
enum  HTTPResponseType {
  HTTPNone , HTTPError , HTTPRedirect , HTTPFileDownload ,
  HTTPMemoryDownloadNoFreeNoCopy , HTTPMemoryDownloadNoFreeCopy , HTTPMemoryDownloadFreeNoCopy , HTTPMemoryDownloadFreeCopy
}
 

Functions

HTTPMethod GetHTTPMethod (const char *method)
 
std::string GetHTTPMethod (HTTPMethod method)
 

Typedef Documentation

◆ HTTPRequest

typedef struct HTTPRequest HTTPRequest

◆ HTTPResponseDetails

typedef struct HTTPResponseDetails HTTPResponseDetails

◆ HTTPResponseType

◆ MHD_RESULT

using MHD_RESULT = int

Enumeration Type Documentation

◆ HTTPMethod

enum HTTPMethod
Enumerator
UNKNOWN 
POST 
GET 
HEAD 

◆ HTTPResponseType

Enumerator
HTTPNone 
HTTPError 
HTTPRedirect 
HTTPFileDownload 
HTTPMemoryDownloadNoFreeNoCopy 
HTTPMemoryDownloadNoFreeCopy 
HTTPMemoryDownloadFreeNoCopy 
HTTPMemoryDownloadFreeCopy 

Function Documentation

◆ GetHTTPMethod() [1/2]

HTTPMethod GetHTTPMethod ( const char * method)

◆ GetHTTPMethod() [2/2]

std::string GetHTTPMethod ( HTTPMethod method)