Contains the winyl_request function and related.
More...
|
|
#define | WINYL_REQUEST_GET_SOCKET 1 |
| | Skips reading the body so the socket can be read from.
|
| |
|
#define | WINYL_REQUEST_NO_HEADERS 2 |
| | Skips parsing the headers.
|
| |
|
#define | WINYL_REQUEST_NO_NUL 4 |
| | Skips adding a \0 to the end of the response body.
|
| |
|
#define | WINYL_REQUEST_SLASH 8 |
| | Adds a slash to the beginning of the path passed. Useful for yuarel.
|
| |
|
#define | WINYL_ERROR_SOCKET 2 |
| | Error calling net_socket().
|
| |
|
#define | WINYL_ERROR_CONNECT 3 |
| | Error calling net_connect().
|
| |
|
#define | WINYL_ERROR_SEND 5 |
| | Error calling net_send().
|
| |
|
#define | WINYL_ERROR_RECV 6 |
| | Error calling net_recv().
|
| |
|
#define | WINYL_ERROR_CLOSE 9 |
| | Error calling net_close().
|
| |
|
|
typedef struct winyl_response | winyl_response |
| | Represents a HTTP response.
|
| |
|
|
winyl_response | winyl_request (winyl *host, char *path, int flags) |
| | Performs a HTTP request.
|
| |
|
void | winyl_response_close (winyl_response *response) |
| | Frees memory used up by response.
|
| |