[go: up one dir, main page]

File: uri.h

package info (click to toggle)
foot 1.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,492 kB
  • sloc: ansic: 21,242; python: 170; sh: 26; makefile: 7
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);