fediglam/src/http/lib.zig

34 lines
823 B
Zig
Raw Normal View History

2022-06-09 06:37:09 +00:00
const std = @import("std");
const ciutf8 = @import("util").ciutf8;
const request = @import("./request.zig");
2022-06-21 06:04:39 +00:00
2022-10-13 09:23:57 +00:00
const server = @import("./server.zig");
2022-07-09 22:43:35 +00:00
2022-10-16 12:48:12 +00:00
pub const socket = @import("./socket.zig");
2022-06-09 06:37:09 +00:00
pub const Method = std.http.Method;
2022-07-09 22:43:35 +00:00
pub const Status = std.http.Status;
pub const Request = request.Request;
2022-10-13 09:23:57 +00:00
pub const serveConn = server.serveConn;
pub const Response = server.Response;
pub const Handler = server.Handler;
2022-07-09 22:43:35 +00:00
2022-11-05 07:26:53 +00:00
pub const Fields = @import("./headers.zig").Fields;
2022-06-09 06:37:09 +00:00
pub const Headers = std.HashMap([]const u8, []const u8, struct {
pub fn eql(_: @This(), a: []const u8, b: []const u8) bool {
return ciutf8.eql(a, b);
}
pub fn hash(_: @This(), str: []const u8) u64 {
return ciutf8.hash(str);
}
}, std.hash_map.default_max_load_percentage);
test {
2022-06-23 07:25:50 +00:00
_ = server;
_ = request;
2022-06-09 06:37:09 +00:00
}