Handle connection cleanup
This commit is contained in:
parent
bb32c2006a
commit
61c989acde
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue