KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
Loading...
Searching...
No Matches
Data Fields
KlUrl Struct Reference

Parsed URL components (points into original URL string). More...

#include <url.h>

Data Fields

int is_https
 
int is_ws
 
const char * host
 
size_t host_len
 
int port
 
const char * path
 
size_t path_len
 

Detailed Description

Parsed URL components (points into original URL string).

All string fields are non-owning pointers into the original URL string. The URL string must remain valid for the lifetime of this struct.

Field Documentation

◆ is_https

int KlUrl::is_https

1 for https:// or wss://, 0 for http:// or ws://

◆ is_ws

int KlUrl::is_ws

1 for ws:// or wss://, 0 for http:// or https://

◆ host

const char* KlUrl::host

Hostname (without brackets for IPv6)

◆ host_len

size_t KlUrl::host_len

◆ port

int KlUrl::port

Port number (default: 80 for http/ws, 443 for https/wss)

◆ path

const char* KlUrl::path

Path including leading '/' and query string

◆ path_len

size_t KlUrl::path_len

The documentation for this struct was generated from the following file: