Handle connection cleanup

This commit is contained in:
jaina heartles 2022-07-09 15:14:49 -07:00
parent bb32c2006a
commit 61c989acde

View file

@ -18,8 +18,9 @@ pub const Context = struct {
return try http.response_stream.open(self.alloc, self.connection.stream.writer(), headers, status); return try http.response_stream.open(self.alloc, self.connection.stream.writer(), headers, status);
} }
pub fn deinit(_: *Context) void { pub fn close(self: *Context) void {
// todo: deallocate request // todo: deallocate request
self.connection.close();
} }
}; };