HTTP types: headers, status codes, methods, bodies, MIME types
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

http: fix README — Body.json takes Jsont.json not string, add 6 missing modules

+7 -1
+7 -1
README.md
··· 24 24 - `Mime` -- MIME type detection and constants 25 25 - `Cache_control` -- cache directive parsing per RFC 9111 26 26 - `Huri` -- efficient URI serialization to `Eio.Buf_write` 27 + - `Error` -- centralized error types and Eio.Io exception integration 28 + - `Header_name` -- type-safe HTTP header names 29 + - `Http_date` -- HTTP-date parsing per RFC 9110 30 + - `Http_version` -- HTTP protocol version types and ALPN 31 + - `Expect_continue` -- HTTP 100-Continue configuration 32 + - `Response_limits` -- configurable response size limits 27 33 28 34 ## Quick Start 29 35 30 36 ```ocaml 31 37 (* Build a JSON body *) 32 - let body = Body.json {|{"name": "Alice"}|} 38 + let body = Body.json Jsont.(Object ([ ("name", String "Alice") ], Meta.none)) 33 39 34 40 (* Build headers *) 35 41 let headers =