19 #ifndef _ASTERISK_URI_H 20 #define _ASTERISK_URI_H
const char * ast_uri_path(const struct ast_uri *uri)
Retrieve the uri path.
Stores parsed uri information.
struct ast_uri * ast_uri_parse(const char *uri)
Parse the given uri into a structure.
const char * ast_uri_query(const struct ast_uri *uri)
Retrieve the uri query parameters.
const char * ast_uri_user_info(const struct ast_uri *uri)
Retrieve the uri user information.
struct ast_uri * ast_uri_copy_replace(const struct ast_uri *uri, const char *scheme, const char *user_info, const char *host, const char *port, const char *path, const char *query)
Copy the given uri replacing any value in the new uri with any given.
struct ast_uri * ast_uri_parse_http(const char *uri)
Parse the given http uri into a structure.
int attribute_pure ast_uri_is_secure(const struct ast_uri *uri)
Retrieve if the uri is of a secure type.
struct ast_uri * ast_uri_create(const char *scheme, const char *user_info, const char *host, const char *port, const char *path, const char *query)
Create a uri with the given parameters.
char * ast_uri_make_host_with_port(const struct ast_uri *uri)
Retrieve a string of the host and port.
const char * ast_uri_port(const struct ast_uri *uri)
Retrieve the uri port.
const char * ast_uri_scheme(const struct ast_uri *uri)
Retrieve the uri scheme.
struct ast_uri * ast_uri_parse_websocket(const char *uri)
Parse the given websocket uri into a structure.
const char * ast_uri_host(const struct ast_uri *uri)
Retrieve the uri host.