|
KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
|
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 |
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.
| const char* KlUrl::host |
Hostname (without brackets for IPv6)
| size_t KlUrl::host_len |
| int KlUrl::port |
Port number (default: 80 for http/ws, 443 for https/wss)
| const char* KlUrl::path |
Path including leading '/' and query string
| size_t KlUrl::path_len |