|
XenevaOS
|
#include <stddef.h>#include <stdint.h>

Go to the source code of this file.
Classes | |
| struct | xe_http_response |
Macros | |
| #define | XE_HTTP_ERR_MAX 160 |
| #define | XE_HTTP_HDR_MAX 1024 |
| #define | XE_HTTP_MANY_MAX 8 |
Typedefs | |
| typedef struct xe_http_response | xe_http_response |
Functions | |
| int | xe_http_get (const char *url, const char *method, const char *user_agent, xe_http_response *out, size_t max_body) |
| int | xe_http_get_many (const char **urls, int n, const char *user_agent, xe_http_response *outs, const size_t *max_body, int *rcs) |
| void | xe_http_response_free (xe_http_response *out) |
| void | xe_http_set_referer (const char *url) |
| void | xe_http_set_body (const char *content_type, const void *body, size_t len) |
| void | xe_http_last_url (char *dst, size_t dstsz) |
| void | xe_cookie_set (const char *page_url, const char *set_cookie, int from_http) |
| int | xe_cookie_header (const char *url, char *dst, size_t dstsz) |
| int | xe_cookie_document (const char *url, char *dst, size_t dstsz) |
| #define XE_HTTP_ERR_MAX 160 |
BSD 2-Clause License
Copyright (c) 2026, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| #define XE_HTTP_HDR_MAX 1024 |
| #define XE_HTTP_MANY_MAX 8 |
| typedef struct xe_http_response xe_http_response |
| int xe_cookie_document | ( | const char * | url, |
| char * | dst, | ||
| size_t | dstsz | ||
| ) |
| int xe_cookie_header | ( | const char * | url, |
| char * | dst, | ||
| size_t | dstsz | ||
| ) |
| void xe_cookie_set | ( | const char * | page_url, |
| const char * | set_cookie, | ||
| int | from_http | ||
| ) |
| int xe_http_get | ( | const char * | url, |
| const char * | method, | ||
| const char * | user_agent, | ||
| xe_http_response * | out, | ||
| size_t | max_body | ||
| ) |
| int xe_http_get_many | ( | const char ** | urls, |
| int | n, | ||
| const char * | user_agent, | ||
| xe_http_response * | outs, | ||
| const size_t * | max_body, | ||
| int * | rcs | ||
| ) |
| void xe_http_last_url | ( | char * | dst, |
| size_t | dstsz | ||
| ) |
| void xe_http_response_free | ( | xe_http_response * | out | ) |
| void xe_http_set_body | ( | const char * | content_type, |
| const void * | body, | ||
| size_t | len | ||
| ) |
| void xe_http_set_referer | ( | const char * | url | ) |