]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/protocol/http.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: HTTP protocol
4 // Author: Guilhem Lavaux
6 // Created: August 1997
8 // Copyright: (c) 1997, 1998 Guilhem Lavaux
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/protocol/protocol.h"
17 class WXDLLEXPORT wxHTTP
: public wxProtocol
{
18 DECLARE_DYNAMIC_CLASS(wxHTTP
)
19 DECLARE_PROTOCOL(wxHTTP
)
21 wxProtocolError m_perr
;
24 wxSockAddress
*m_addr
;
29 bool Connect(const wxString
& host
);
30 bool Connect(wxSockAddress
& addr
);
32 wxInputStream
*GetInputStream(const wxString
& path
);
33 inline wxProtocolError
GetError() { return m_perr
; }
34 wxString
GetContentType();
36 void SetHeader(const wxString
& header
, const wxString
& h_data
);
37 wxString
GetHeader(const wxString
& header
);
43 bool BuildRequest(const wxString
& path
, wxHTTP_Req req
);