|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
Production-grade URL parsing and validation using PCRE2. More...
Go to the source code of this file.
Functions | |
| bool | url_is_valid (const char *url) |
| asciichat_error_t | url_parse (const char *url, url_parts_t *parts_out) |
| void | url_parts_destroy (url_parts_t *parts) |
| bool | url_is_websocket_scheme (const char *scheme) |
| bool | url_is_websocket (const char *url) |
| bool | url_looks_like_websocket (const char *url) |
Production-grade URL parsing and validation using PCRE2.
Implements robust HTTP(S) URL validation using the production-grade regex by Diego Perini (MIT License), compiled with PCRE2 and JIT for high performance.
Definition in file url.c.
| bool url_is_valid | ( | const char * | url | ) |
Definition at line 81 of file url.c.
Referenced by ffmpeg_decoder_create(), options_init(), parse_public_key(), and yt_dlp_extract_stream_url().
| bool url_is_websocket | ( | const char * | url | ) |
Definition at line 307 of file url.c.
References url_is_websocket_scheme(), url_parse(), and url_parts_destroy().
Referenced by client_main(), connection_attempt_tcp(), server_connection_establish(), and session_client_like_run().
| bool url_is_websocket_scheme | ( | const char * | scheme | ) |
Definition at line 297 of file url.c.
Referenced by url_is_websocket().
| bool url_looks_like_websocket | ( | const char * | url | ) |
Definition at line 322 of file url.c.
| asciichat_error_t url_parse | ( | const char * | url, |
| url_parts_t * | parts_out | ||
| ) |
Definition at line 166 of file url.c.
References asciichat_pcre2_extract_named_group(), and url_parts_destroy().
Referenced by connection_attempt_tcp(), parse_public_key(), server_connection_establish(), and url_is_websocket().
| void url_parts_destroy | ( | url_parts_t * | parts | ) |
Definition at line 281 of file url.c.
Referenced by connection_attempt_tcp(), parse_public_key(), server_connection_establish(), url_is_websocket(), and url_parse().