mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 23:24:09 +00:00
Merge pull request #5 from qbradley/pub_types
Make ContentType, HttpParam, and ListenError public
This commit is contained in:
commit
967c23aa2b
1 changed files with 3 additions and 3 deletions
|
@ -35,17 +35,17 @@ pub fn start(args: C.fio_start_args) void {
|
||||||
C.fio_start(args);
|
C.fio_start(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
const ListenError = error{
|
pub const ListenError = error{
|
||||||
AlreadyListening,
|
AlreadyListening,
|
||||||
ListenError,
|
ListenError,
|
||||||
};
|
};
|
||||||
|
|
||||||
const HttpParam = struct {
|
pub const HttpParam = struct {
|
||||||
key: []const u8,
|
key: []const u8,
|
||||||
value: []const u8,
|
value: []const u8,
|
||||||
};
|
};
|
||||||
|
|
||||||
const ContentType = enum {
|
pub const ContentType = enum {
|
||||||
TEXT,
|
TEXT,
|
||||||
HTML,
|
HTML,
|
||||||
JSON,
|
JSON,
|
||||||
|
|
Loading…
Add table
Reference in a new issue