1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 15:14:08 +00:00

Merge pull request #5 from qbradley/pub_types

Make ContentType, HttpParam, and ListenError public
This commit is contained in:
Rene Schallner 2023-02-14 09:27:43 +01:00 committed by GitHub
commit 967c23aa2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,17 +35,17 @@ pub fn start(args: C.fio_start_args) void {
C.fio_start(args);
}
const ListenError = error{
pub const ListenError = error{
AlreadyListening,
ListenError,
};
const HttpParam = struct {
pub const HttpParam = struct {
key: []const u8,
value: []const u8,
};
const ContentType = enum {
pub const ContentType = enum {
TEXT,
HTML,
JSON,