Prepared wxWebRequest implementation

This commit is contained in:
Tobias Taschner
2018-10-18 23:19:17 +02:00
parent cacd79d40e
commit e07c1bf40c
19 changed files with 593 additions and 67 deletions

View File

@@ -0,0 +1,33 @@
///////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/webrequest_winhttp.h
// Purpose: wxWebRequest WinHTTP implementation
// Author: Tobias Taschner
// Created: 2018-10-17
// Copyright: (c) 2018 wxWidgets development team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef _WX_MSW_WEBREQUEST_WINHTTP_H
#define _WX_MSW_WEBREQUEST_WINHTTP_H
class WXDLLIMPEXP_NET wxWebSessionWinHTTP: public wxWebSession
{
public:
wxWebSessionWinHTTP() { }
wxWebRequest* CreateRequest(const wxString& url, int id = wxID_ANY) wxOVERRIDE;
void SetHeader(const wxString& name, const wxString& value) wxOVERRIDE;
private:
};
class WXDLLIMPEXP_NET wxWebSessionFactoryWinHTTP: public wxWebSessionFactory
{
public:
wxWebSession* Create() wxOVERRIDE
{ return new wxWebSessionWinHTTP(); }
};
#endif // _WX_MSW_WEBREQUEST_WINHTTP_H