I can probably open a PR for this later today when I have some more time, but just wanted to write it down in case I forget. The ContentType enum in https://github.com/karlseguin/http.zig/blob/master/src/httpz.zig should have a WASM option, and the forExtension and other APIs should be enhanced to handle it.
Of course I can get around this now by adding the Content-Type header manually. Let me know if there is some specific criteria for which things should be in ContentType, or if it's just a convenience for common types.
I can probably open a PR for this later today when I have some more time, but just wanted to write it down in case I forget. The
ContentType
enum in https://github.com/karlseguin/http.zig/blob/master/src/httpz.zig should have aWASM
option, and theforExtension
and other APIs should be enhanced to handle it.Of course I can get around this now by adding the
Content-Type
header manually. Let me know if there is some specific criteria for which things should be inContentType
, or if it's just a convenience for common types.