Types (structs, unions and typedefs)

type urlparse_url

urlparse_url is a struct to store the result of parsing a URL.

uint16_t field_set

field_set is a bitmask of (1 << URLPARSE_*) values.

uint16_t port

port is the integer representation of URLPARSE_PORT string. It is assigned only when (field_set & (1 << URLPARSE_PORT)) is nonzero.

struct [anonymous] field_data[URLPARSE_MAX]

field_data stores the position and its length of each URL component if the corresponding bit is set in field_set. For example, field_data[URLPARSE_HOST] is assigned if (field_set & (1 << URLPARSE_HOST)) is nonzero.

uint16_t off

off is an offset into buffer in which field starts.

uint16_t len

len is a length of run in buffer.