#include <cybergarage/http/chttp.h>
#include <cybergarage/util/clog.h>
#include <cybergarage/net/cinterface.h>
#include <limits.h>
Defines |
| #define | READBUF_LENGTH 1024 |
Functions |
| CgHttpPacket * | cg_http_packet_new () |
| void | cg_http_packet_delete (CgHttpPacket *httpPkt) |
| void | cg_http_packet_init (CgHttpPacket *httpPkt) |
| void | cg_http_packet_clean (CgHttpPacket *httpPkt) |
| void | cg_http_packet_clear (CgHttpPacket *httpPkt) |
| void | cg_http_packet_setheadervalue (CgHttpPacket *httpPkt, char *name, char *value) |
| void | cg_http_packet_setheaderinteger (CgHttpPacket *httpPkt, char *name, int value) |
| void | cg_http_packet_setheaderlong (CgHttpPacket *httpPkt, char *name, long value) |
| char * | cg_http_packet_getheadervalue (CgHttpPacket *httpPkt, char *name) |
| int | cg_http_packet_getheaderinteger (CgHttpPacket *httpPkt, char *name) |
| long | cg_http_packet_getheaderlong (CgHttpPacket *httpPkt, char *name) |
| void | cg_http_packet_sethost (CgHttpPacket *httpPkt, char *addr, int port) |
| void | cg_http_packet_post (CgHttpPacket *httpPkt, CgSocket *sock) |
| void | cg_http_packet_read_headers (CgHttpPacket *httpPkt, CgSocket *sock, char *lineBuf, int lineBufSize) |
| long | cg_http_packet_read_chunk (CgHttpPacket *httpPkt, CgSocket *sock, char *lineBuf, int lineBufSize) |
| BOOL | cg_http_packet_read_body (CgHttpPacket *httpPkt, CgSocket *sock, char *lineBuf, int lineBufSize) |
| BOOL | cg_http_packet_read (CgHttpPacket *httpPkt, CgSocket *sock, BOOL onlyHeader, char *lineBuf, int lineBufSize) |
| int | cg_http_packet_getheadersize (CgHttpPacket *httpPkt) |
| void | cg_http_packet_copy (CgHttpPacket *destHttpPkt, CgHttpPacket *srcHttpPkt) |
| void | cg_http_packet_print (CgHttpPacket *httpPkt) |
Define Documentation
| #define READBUF_LENGTH 1024 |
Function Documentation
| int cg_http_packet_getheaderinteger |
( |
CgHttpPacket * |
httpPkt, |
|
|
char * |
name |
|
) |
| |
| long cg_http_packet_getheaderlong |
( |
CgHttpPacket * |
httpPkt, |
|
|
char * |
name |
|
) |
| |
| char* cg_http_packet_getheadervalue |
( |
CgHttpPacket * |
httpPkt, |
|
|
char * |
name |
|
) |
| |
| long cg_http_packet_read_chunk |
( |
CgHttpPacket * |
httpPkt, |
|
|
CgSocket * |
sock, |
|
|
char * |
lineBuf, |
|
|
int |
lineBufSize |
|
) |
| |
| void cg_http_packet_read_headers |
( |
CgHttpPacket * |
httpPkt, |
|
|
CgSocket * |
sock, |
|
|
char * |
lineBuf, |
|
|
int |
lineBufSize |
|
) |
| |
| void cg_http_packet_setheaderinteger |
( |
CgHttpPacket * |
httpPkt, |
|
|
char * |
name, |
|
|
int |
value |
|
) |
| |
| void cg_http_packet_setheaderlong |
( |
CgHttpPacket * |
httpPkt, |
|
|
char * |
name, |
|
|
long |
value |
|
) |
| |
| void cg_http_packet_setheadervalue |
( |
CgHttpPacket * |
httpPkt, |
|
|
char * |
name, |
|
|
char * |
value |
|
) |
| |
| void cg_http_packet_sethost |
( |
CgHttpPacket * |
httpPkt, |
|
|
char * |
addr, |
|
|
int |
port |
|
) |
| |