We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7e5097 commit c62487eCopy full SHA for c62487e
tests/unit/dune
@@ -1,4 +1,4 @@
1
(tests
2
- (names t_util t_buf t_server t_io)
+ (names t_util t_buf t_server t_io t_response)
3
(package tiny_httpd)
4
(libraries tiny_httpd.core qcheck-core qcheck-core.runner test_util))
tests/unit/t_response.ml
@@ -0,0 +1,17 @@
+open Test_util
+open Tiny_httpd_core
+module U = Util
+
5
+let () =
6
+ let res =
7
+ Response.make_raw ~code:200 ~headers:[ "content-length", "42" ] ""
8
+ in
9
+ let h = Headers.get_exn "content-length" res.headers in
10
+ assert_eq "42" h
11
12
13
14
+ Response.make_raw ~code:200 ~headers:[ "Content-Length", "42" ] ""
15
16
17
0 commit comments