acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
tiny_http Class Reference

Public Types

enum  http_retcode {
  ERRHOST =-1 , ERRSOCK =-2 , ERRCONN =-3 , ERRWRHD =-4 ,
  ERRWRDT =-5 , ERRRDHD =-6 , ERRPAHD =-7 , ERRNULL =-8 ,
  ERRNOLG =-9 , ERRMEM =-10 , ERRRDDT =-11 , ERRURLH =-12 ,
  ERRURLP =-13 , ERR400 =400 , ERR403 =403 , ERR408 =408 ,
  ERR500 =500 , ERR501 =501 , ERR503 =503 , OK0 = 0 ,
  OK201 =201 , OK200 =200
}
enum  querymode { CLOSE , KEEP_OPEN }

Public Member Functions

http_retcode t_put (const_char_pointer data, ::i32 length, ::i32 overwrite, void(*callback)(void *, ::i32, dword_ptr)=nullptr, void *callback_param=nullptr)
http_retcode t_get (char_pointer *pdata, ::i32 *plength, void(*callback)(void *, ::i32, dword_ptr)=nullptr, void *callback_param=nullptr)
http_retcode t_delete ()
http_retcode t_head (::i32 *plength)
http_retcode t_parse_url (const_char_pointer url)
::i32 t_read_line (::i32 fd, char_pointer buffer, ::i32 maximum)
::i32 t_read_buffer (::i32 fd, char_pointer buffer, ::i32 maximum, void(*callback)(void *, ::i32, dword_ptr)=nullptr, void *callback_param=nullptr)
http_retcode t_query (const_char_pointer command, const_char_pointer url, const_char_pointer additional_header, querymode mode, char_pointer data, ::i32 length, ::i32 *pfd)

Public Attributes

string m_strHttpServer
::i32 m_iHttpPort
string m_strProxyServer
::i32 m_iHttpProxyPort
string m_strUserAgent
::file::path m_strFileName
string m_strContentType

The documentation for this class was generated from the following files:
  • operating_system/solaris/solaris_http_lib.h
  • operating_system/solaris/solaris_http_lib.cpp