Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
url.h File Reference

URL components. More...

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  net_url_field
 A component of a URL, located in the string it was parsed from. More...
struct  net_url
 The components of a URL. More...

Functions

int net_url_parse (const char *url, struct net_url *out)
 Split a URL into its components.
bool net_url_scheme_is (const struct net_url *url, const char *scheme)
 Compare the scheme of a URL, ignoring case.
bool net_url_has_port (const struct net_url *url)
 Check whether a URL names a port.
int net_url_field_copy (const struct net_url *url, const struct net_url_field *field, char *dst, size_t dst_len)
 Copy a component into a NUL-terminated buffer.
int net_url_target_copy (const struct net_url *url, char *dst, size_t dst_len)
 Copy the request target of a URL into a NUL-terminated buffer.

Detailed Description

URL components.