Skip to content

Commit

Permalink
feat: allow max HTTP response size to be configured in the manifest (#13
Browse files Browse the repository at this point in the history
)

* feat: allow max HTTP request size to be configured in the manifest

* cleanup: use u64 for max http response size, remove unrelated code
  • Loading branch information
zshipko committed Feb 9, 2024
1 parent 36d5409 commit 4a6a921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manifest.zig
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub const Wasm = union(enum) {

pub const Manifest = struct {
wasm: []const Wasm,
memory: ?struct { max_pages: ?u32 } = null,
memory: ?struct { max_pages: ?u32, max_http_response_bytes: ?u64 } = null,
config: ?std.json.ArrayHashMap([]const u8) = null,
allowed_hosts: ?[]const []const u8 = null,
allowed_paths: ?std.json.ArrayHashMap([]const u8) = null,
Expand Down

0 comments on commit 4a6a921

Please sign in to comment.