"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xbmc/network/WebServer.h" between
xbmc-18.7.1-Leia.tar.gz and xbmc-18.8-Leia.tar.gz

About: XBMC is a software media player and entertainment hub for digital media that plays almost all popular audio and video formats around (new name "Kodi").

WebServer.h  (xbmc-18.7.1-Leia):WebServer.h  (xbmc-18.8-Leia)
skipping to change at line 59 skipping to change at line 59
: fullUri(uri) : fullUri(uri)
, isNew(true) , isNew(true)
, requestHandler(nullptr) , requestHandler(nullptr)
, postprocessor(nullptr) , postprocessor(nullptr)
, errorStatus(MHD_HTTP_OK) , errorStatus(MHD_HTTP_OK)
{ } { }
} ConnectionHandler; } ConnectionHandler;
virtual void LogRequest(const char* uri) const; virtual void LogRequest(const char* uri) const;
virtual int HandlePartialRequest(struct MHD_Connection *connection, Connection Handler* connectionHandler, const HTTPRequest& request, virtual MHD_RESULT HandlePartialRequest(struct MHD_Connection *connection, Con nectionHandler* connectionHandler, const HTTPRequest& request,
const char *upload_data, size_t *upload_data_ size, void **con_cls); const char *upload_data, size_t *upload_data_ size, void **con_cls);
virtual int HandleRequest(const std::shared_ptr<IHTTPRequestHandler>& handler) virtual MHD_RESULT HandleRequest(const std::shared_ptr<IHTTPRequestHandler>& h
; andler);
virtual int FinalizeRequest(const std::shared_ptr<IHTTPRequestHandler>& handle virtual MHD_RESULT FinalizeRequest(const std::shared_ptr<IHTTPRequestHandler>&
r, int responseStatus, struct MHD_Response *response); handler, int responseStatus, struct MHD_Response *response);
private: private:
struct MHD_Daemon* StartMHD(unsigned int flags, int port); struct MHD_Daemon* StartMHD(unsigned int flags, int port);
std::shared_ptr<IHTTPRequestHandler> FindRequestHandler(const HTTPRequest& req uest) const; std::shared_ptr<IHTTPRequestHandler> FindRequestHandler(const HTTPRequest& req uest) const;
int AskForAuthentication(const HTTPRequest& request) const; MHD_RESULT AskForAuthentication(const HTTPRequest& request) const;
bool IsAuthenticated(const HTTPRequest& request) const; bool IsAuthenticated(const HTTPRequest& request) const;
bool IsRequestCacheable(const HTTPRequest& request) const; bool IsRequestCacheable(const HTTPRequest& request) const;
bool IsRequestRanged(const HTTPRequest& request, const CDateTime &lastModified ) const; bool IsRequestRanged(const HTTPRequest& request, const CDateTime &lastModified ) const;
void SetupPostDataProcessing(const HTTPRequest& request, ConnectionHandler *co nnectionHandler, std::shared_ptr<IHTTPRequestHandler> handler, void **con_cls) c onst; void SetupPostDataProcessing(const HTTPRequest& request, ConnectionHandler *co nnectionHandler, std::shared_ptr<IHTTPRequestHandler> handler, void **con_cls) c onst;
bool ProcessPostData(const HTTPRequest& request, ConnectionHandler *connection Handler, const char *upload_data, size_t *upload_data_size, void **con_cls) cons t; bool ProcessPostData(const HTTPRequest& request, ConnectionHandler *connection Handler, const char *upload_data, size_t *upload_data_size, void **con_cls) cons t;
void FinalizePostDataProcessing(ConnectionHandler *connectionHandler) const; void FinalizePostDataProcessing(ConnectionHandler *connectionHandler) const;
int CreateMemoryDownloadResponse(const std::shared_ptr<IHTTPRequestHandler>& h MHD_RESULT CreateMemoryDownloadResponse(const std::shared_ptr<IHTTPRequestHand
andler, struct MHD_Response *&response) const; ler>& handler, struct MHD_Response *&response) const;
int CreateRangedMemoryDownloadResponse(const std::shared_ptr<IHTTPRequestHandl MHD_RESULT CreateRangedMemoryDownloadResponse(const std::shared_ptr<IHTTPReque
er>& handler, struct MHD_Response *&response) const; stHandler>& handler, struct MHD_Response *&response) const;
int CreateRedirect(struct MHD_Connection *connection, const std::string &strUR MHD_RESULT CreateRedirect(struct MHD_Connection *connection, const std::string
L, struct MHD_Response *&response) const; &strURL, struct MHD_Response *&response) const;
int CreateFileDownloadResponse(const std::shared_ptr<IHTTPRequestHandler>& han MHD_RESULT CreateFileDownloadResponse(const std::shared_ptr<IHTTPRequestHandle
dler, struct MHD_Response *&response) const; r>& handler, struct MHD_Response *&response) const;
int CreateErrorResponse(struct MHD_Connection *connection, int responseType, H MHD_RESULT CreateErrorResponse(struct MHD_Connection *connection, int response
TTPMethod method, struct MHD_Response *&response) const; Type, HTTPMethod method, struct MHD_Response *&response) const;
int CreateMemoryDownloadResponse(struct MHD_Connection *connection, const void MHD_RESULT CreateMemoryDownloadResponse(struct MHD_Connection *connection, con
*data, size_t size, bool free, bool copy, struct MHD_Response *&response) const st void *data, size_t size, bool free, bool copy, struct MHD_Response *&response
; ) const;
int SendResponse(const HTTPRequest& request, int responseStatus, MHD_Response MHD_RESULT SendResponse(const HTTPRequest& request, int responseStatus, MHD_Re
*response) const; sponse *response) const;
int SendErrorResponse(const HTTPRequest& request, int errorType, HTTPMethod me MHD_RESULT SendErrorResponse(const HTTPRequest& request, int errorType, HTTPMe
thod) const; thod method) const;
int AddHeader(struct MHD_Response *response, const std::string &name, const st d::string &value) const; MHD_RESULT AddHeader(struct MHD_Response *response, const std::string &name, c onst std::string &value) const;
void LogRequest(const HTTPRequest& request) const; void LogRequest(const HTTPRequest& request) const;
void LogResponse(const HTTPRequest& request, int responseStatus) const; void LogResponse(const HTTPRequest& request, int responseStatus) const;
static std::string CreateMimeTypeFromExtension(const char *ext); static std::string CreateMimeTypeFromExtension(const char *ext);
// MHD callback implementations // MHD callback implementations
static void* UriRequestLogger(void *cls, const char *uri); static void* UriRequestLogger(void *cls, const char *uri);
static ssize_t ContentReaderCallback (void *cls, uint64_t pos, char *buf, size _t max); static ssize_t ContentReaderCallback (void *cls, uint64_t pos, char *buf, size _t max);
static void ContentReaderFreeCallback(void *cls); static void ContentReaderFreeCallback(void *cls);
static int AnswerToConnection (void *cls, struct MHD_Connection *connection, static MHD_RESULT AnswerToConnection (void *cls, struct MHD_Connection *connec tion,
const char *url, const char *method, const char *url, const char *method,
const char *version, const char *upload_data, const char *version, const char *upload_data,
size_t *upload_data_size, void **con_cls); size_t *upload_data_size, void **con_cls);
static int HandlePostField(void *cls, enum MHD_ValueKind kind, const char *key , static MHD_RESULT HandlePostField(void *cls, enum MHD_ValueKind kind, const ch ar *key,
const char *filename, const char *content_type, const char *filename, const char *content_type,
const char *transfer_encoding, const char *data, ui nt64_t off, const char *transfer_encoding, const char *data, ui nt64_t off,
size_t size); size_t size);
bool LoadCert(std::string &skey, std::string &scert); bool LoadCert(std::string &skey, std::string &scert);
uint16_t m_port = 0; uint16_t m_port = 0;
struct MHD_Daemon *m_daemon_ip6 = nullptr; struct MHD_Daemon *m_daemon_ip6 = nullptr;
struct MHD_Daemon *m_daemon_ip4 = nullptr; struct MHD_Daemon *m_daemon_ip4 = nullptr;
bool m_running = false; bool m_running = false;
 End of changes. 9 change blocks. 
26 lines changed or deleted 26 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)