A type for parsing URLs.
More...
#include "util.h"
|
| char const * | fragment |
| | The fragment part, including the '#' prefix.
|
| char const * | host |
| | The remote host name.
|
| struct { | |
| fsl_buffer b | |
| } | impl |
| | Private implementation details.
|
| char const * | password |
| | The URL's username's password or NULL.
|
| char const * | path |
| | The path.
|
| uint16_t | port |
| | The :portNumber part or 0.
|
| char const * | query |
| | The query string, including the '?
|
| char const * | raw |
| | The raw, unparsed URL.
|
| char const * | scheme |
| | The URL's scheme.
|
| char const * | username |
| | The URL's username or NULL.
|
A type for parsing URLs.
Its memory is managed by fsl_url_parse() and fsl_url_cleanup().
Definition at line 6512 of file util.h.
◆ fragment
| char const* fsl_url::fragment |
The fragment part, including the '#' prefix.
Definition at line 6531 of file util.h.
◆ host
| char const* fsl_url::host |
The remote host name.
Is only NULL for file URLs.
Definition at line 6522 of file util.h.
◆ [struct]
| struct { ... } fsl_url::impl |
Private implementation details.
fsl_url_parse() allocates this buffer a single time and points the other members into the memory owned by impl.b. Its approximate allocated size is a handful of bytes more than twice the strlen() of this->raw.
◆ password
| char const* fsl_url::password |
The URL's username's password or NULL.
Definition at line 6520 of file util.h.
◆ path
| char const* fsl_url::path |
The path.
For file URLs, this is where the file's name is stored.
Definition at line 6527 of file util.h.
◆ port
The :portNumber part or 0.
Definition at line 6524 of file util.h.
◆ query
| char const* fsl_url::query |
The query string, including the '?
' prefix.
Definition at line 6529 of file util.h.
◆ raw
The raw, unparsed URL.
Definition at line 6514 of file util.h.
◆ scheme
| char const* fsl_url::scheme |
The URL's scheme.
Definition at line 6516 of file util.h.
◆ username
| char const* fsl_url::username |
The URL's username or NULL.
Definition at line 6518 of file util.h.
The documentation for this struct was generated from the following file: