Skip to content

Commit

Permalink
API cleanup #3 --------------
Browse files Browse the repository at this point in the history
More zap docstrings
  • Loading branch information
renerocksai committed Jan 9, 2024
1 parent 207a761 commit 0fb4d8a
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 23 deletions.
1 change: 1 addition & 0 deletions src/middleware.zig
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ pub const Error = error{

pub const RequestAllocatorFn = *const fn () std.mem.Allocator;

/// Special Listener that supports chaining request handlers.
pub fn Listener(comptime ContextType: anytype) type {
return struct {
listener: zap.HttpListener = undefined,
Expand Down
Loading

0 comments on commit 0fb4d8a

Please sign in to comment.