Please let me know if I'm doing something wrong but it seems like handler is copied in server.zig and so the mutable self pointer is not the same across different hooks... is this expected?
I know to use context for state across handlers but I thought I could put handler-local state within that struct... maybe bad assumption? I'm new to zig so I may be doing something silly. Thanks for the library!
Please let me know if I'm doing something wrong but it seems like
handler
is copied in server.zig and so the mutableself
pointer is not the same across different hooks... is this expected?I know to use
context
for state across handlers but I thought I could put handler-local state within that struct... maybe bad assumption? I'm new to zig so I may be doing something silly. Thanks for the library!