XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
https.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for https.h:
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

◆ XE_HTTP_ERR_MAX

#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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

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.

◆ XE_HTTP_HDR_MAX

#define XE_HTTP_HDR_MAX   1024

◆ XE_HTTP_MANY_MAX

#define XE_HTTP_MANY_MAX   8

Typedef Documentation

◆ xe_http_response

Function Documentation

◆ xe_cookie_document()

int xe_cookie_document ( const char *  url,
char *  dst,
size_t  dstsz 
)

◆ xe_cookie_header()

int xe_cookie_header ( const char *  url,
char *  dst,
size_t  dstsz 
)

◆ xe_cookie_set()

void xe_cookie_set ( const char *  page_url,
const char *  set_cookie,
int  from_http 
)

◆ xe_http_get()

int xe_http_get ( const char *  url,
const char *  method,
const char *  user_agent,
xe_http_response *  out,
size_t  max_body 
)

◆ xe_http_get_many()

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 
)

◆ xe_http_last_url()

void xe_http_last_url ( char *  dst,
size_t  dstsz 
)

◆ xe_http_response_free()

void xe_http_response_free ( xe_http_response *  out)

◆ xe_http_set_body()

void xe_http_set_body ( const char *  content_type,
const void *  body,
size_t  len 
)

◆ xe_http_set_referer()

void xe_http_set_referer ( const char *  url)