jetzig-framework / jetzig

Jetzig is a web framework written in Zig
MIT License
458 stars 21 forks source link

Use content-type header if present to detect format #18

Closed bobf closed 6 months ago

bobf commented 6 months ago

Detect request format (HTML or JSON) from content-type header.

Previous:

Current:

Adjust http.Headers to do case-insensitive matching to conform to HTTP spec: https://www.rfc-editor.org/rfc/rfc9110.html#name-field-names