File: uri.h

package info (click to toggle)
foot 1.26.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,692 kB
  • sloc: ansic: 41,627; python: 499; sh: 181; makefile: 18
file content (11 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

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

bool uri_parse(const char *uri, size_t len,
               char **scheme, char **user, char **password, char **host,
               uint16_t *port, char **path, char **query, char **fragment);

bool hostname_is_localhost(const char *hostname);