foobar2000 SDK  2015-01-14
Public Member Functions | Private Member Functions
http_request_postabstract

#include <http_client.h>

+ Inheritance diagram for http_request_post:

Public Member Functions

virtual void add_post_data (const char *name, const void *data, t_size dataSize, const char *fileName, const char *contentType)=0
 
void add_post_data (const char *name, const char *value)
 
- Public Member Functions inherited from service_base
template<typename outPtr_t >
bool cast (outPtr_t &outPtr)
 
virtual int service_add_ref ()=0 throw ()
 
virtual bool service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid)
 
template<class T >
bool service_query_t (service_ptr_t< T > &p_out)
 
virtual int service_release ()=0 throw ()
 

Private Member Functions

 FB2K_MAKE_SERVICE_INTERFACE (http_request_post, http_request)
 

Additional Inherited Members

- Public Types inherited from service_base
typedef service_base t_interface
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Definition at line 30 of file http_client.h.

Member Function Documentation

virtual void http_request_post::add_post_data ( const char *  name,
const void *  data,
t_size  dataSize,
const char *  fileName,
const char *  contentType 
)
pure virtual

Adds a HTTP POST field.

Parameters
nameField name.
fileNameFile name to be included in the POST request; leave empty ("") not to send a file name.
contentTypeContent type of the entry; leave empty ("") not to send content type.
void http_request_post::add_post_data ( const char *  name,
const char *  value 
)
inline

Definition at line 39 of file http_client.h.

39 { add_post_data(name, value, strlen(value), "", ""); }
virtual void add_post_data(const char *name, const void *data, t_size dataSize, const char *fileName, const char *contentType)=0
Adds a HTTP POST field.
http_request_post::FB2K_MAKE_SERVICE_INTERFACE ( http_request_post  ,
http_request   
)
private

The documentation for this class was generated from the following file: