mUPnP for C
http_request.c File Reference
#include <mupnp/http/http.h>
#include <mupnp/net/socket.h>
#include <mupnp/util/list.h>
#include <mupnp/util/log.h>
#include <mupnp/util/string.h>
#include <mupnp/util/thread.h>

Functions

mUpnpHttpRequestmupnp_http_request_new ()
 
void mupnp_http_request_delete (mUpnpHttpRequest *httpReq)
 
void mupnp_http_request_clear (mUpnpHttpRequest *httpReq)
 
void mupnp_http_request_setmethod (mUpnpHttpRequest *httpReq, const char *value)
 
void mupnp_http_request_setversion (mUpnpHttpRequest *httpReq, const char *value)
 
void mupnp_http_request_setuseragent (mUpnpHttpRequest *httpReq, const char *value)
 
void mupnp_http_request_addtouseragent (mUpnpHttpRequest *httpReq, const char *value)
 
void mupnp_http_request_seturi (mUpnpHttpRequest *httpReq, const char *value)
 
char * mupnp_http_request_getmethod (mUpnpHttpRequest *httpReq)
 
char * mupnp_http_request_getversion (mUpnpHttpRequest *httpReq)
 
char * mupnp_http_request_getuseragent (mUpnpHttpRequest *httpReq)
 
char * mupnp_http_request_geturi (mUpnpHttpRequest *httpReq)
 
void mupnp_http_request_setsocket (mUpnpHttpRequest *httpReq, mUpnpSocket *sock)
 
mUpnpSocketmupnp_http_request_getsocket (mUpnpHttpRequest *httpReq)
 
mUpnpHttpResponsemupnp_http_request_post_main (mUpnpHttpRequest *httpReq, const char *ipaddr, int port, bool isSecure)
 
mUpnpHttpResponsemupnp_http_request_post (mUpnpHttpRequest *httpReq, const char *ipaddr, int port)
 
bool mupnp_http_request_read (mUpnpHttpRequest *httpReq, mUpnpSocket *sock)
 
bool mupnp_http_request_postresponse (mUpnpHttpRequest *httpReq, mUpnpHttpResponse *httpRes)
 
bool mupnp_http_request_poststatuscode (mUpnpHttpRequest *httpReq, int httpStatCode)
 
bool mupnp_http_request_postdata (mUpnpHttpRequest *httpReq, void *data, int dataLen)
 
bool mupnp_http_request_postchunkedsize (mUpnpHttpRequest *httpReq, int dataLen)
 
bool mupnp_http_request_postchunkeddata (mUpnpHttpRequest *httpReq, void *data, int dataLen)
 
bool mupnp_http_request_postlastchunk (mUpnpHttpRequest *httpReq)
 
void mupnp_http_request_copy (mUpnpHttpRequest *destHttpReq, mUpnpHttpRequest *srcHttpReq)
 
void mupnp_http_request_print (mUpnpHttpRequest *httpReq)
 

Function Documentation

◆ mupnp_http_request_addtouseragent()

void mupnp_http_request_addtouseragent ( mUpnpHttpRequest * httpReq,
const char * value )

◆ mupnp_http_request_clear()

void mupnp_http_request_clear ( mUpnpHttpRequest * httpReq)

◆ mupnp_http_request_copy()

void mupnp_http_request_copy ( mUpnpHttpRequest * destHttpReq,
mUpnpHttpRequest * srcHttpReq )

◆ mupnp_http_request_delete()

void mupnp_http_request_delete ( mUpnpHttpRequest * httpReq)

◆ mupnp_http_request_getmethod()

char * mupnp_http_request_getmethod ( mUpnpHttpRequest * httpReq)

◆ mupnp_http_request_getsocket()

mUpnpSocket * mupnp_http_request_getsocket ( mUpnpHttpRequest * httpReq)

◆ mupnp_http_request_geturi()

char * mupnp_http_request_geturi ( mUpnpHttpRequest * httpReq)

◆ mupnp_http_request_getuseragent()

char * mupnp_http_request_getuseragent ( mUpnpHttpRequest * httpReq)

◆ mupnp_http_request_getversion()

char * mupnp_http_request_getversion ( mUpnpHttpRequest * httpReq)

◆ mupnp_http_request_new()

mUpnpHttpRequest * mupnp_http_request_new ( void )

◆ mupnp_http_request_post()

mUpnpHttpResponse * mupnp_http_request_post ( mUpnpHttpRequest * httpReq,
const char * ipaddr,
int port )

◆ mupnp_http_request_post_main()

mUpnpHttpResponse * mupnp_http_request_post_main ( mUpnpHttpRequest * httpReq,
const char * ipaddr,
int port,
bool isSecure )

◆ mupnp_http_request_postchunkeddata()

bool mupnp_http_request_postchunkeddata ( mUpnpHttpRequest * httpReq,
void * data,
int dataLen )

◆ mupnp_http_request_postchunkedsize()

bool mupnp_http_request_postchunkedsize ( mUpnpHttpRequest * httpReq,
int dataLen )

◆ mupnp_http_request_postdata()

bool mupnp_http_request_postdata ( mUpnpHttpRequest * httpReq,
void * data,
int dataLen )

◆ mupnp_http_request_postlastchunk()

bool mupnp_http_request_postlastchunk ( mUpnpHttpRequest * httpReq)

◆ mupnp_http_request_postresponse()

bool mupnp_http_request_postresponse ( mUpnpHttpRequest * httpReq,
mUpnpHttpResponse * httpRes )

◆ mupnp_http_request_poststatuscode()

bool mupnp_http_request_poststatuscode ( mUpnpHttpRequest * httpReq,
int httpStatCode )

◆ mupnp_http_request_print()

void mupnp_http_request_print ( mUpnpHttpRequest * httpReq)

◆ mupnp_http_request_read()

bool mupnp_http_request_read ( mUpnpHttpRequest * httpReq,
mUpnpSocket * sock )

◆ mupnp_http_request_setmethod()

void mupnp_http_request_setmethod ( mUpnpHttpRequest * httpReq,
const char * value )

◆ mupnp_http_request_setsocket()

void mupnp_http_request_setsocket ( mUpnpHttpRequest * httpReq,
mUpnpSocket * sock )

◆ mupnp_http_request_seturi()

void mupnp_http_request_seturi ( mUpnpHttpRequest * httpReq,
const char * value )

◆ mupnp_http_request_setuseragent()

void mupnp_http_request_setuseragent ( mUpnpHttpRequest * httpReq,
const char * value )

◆ mupnp_http_request_setversion()

void mupnp_http_request_setversion ( mUpnpHttpRequest * httpReq,
const char * value )