We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21d4a50 commit f8aad91Copy full SHA for f8aad91
2 files changed
src/request/unix/httpun/httpun_client.ml
@@ -115,6 +115,9 @@ let perform ?msg ?meth ?content ?content_type ?(headers=[]) ?timeout handler url
115
| _, None -> `GET
116
| _ -> `POST in
117
log ~meth:(Method.to_string meth) url msg;
118
+ (if !Verbose.v land 4 <> 0 then
119
+ Format.printf "[ez_api] headers\n %s@." @@
120
+ String.concat "\n " @@ List.map (fun (k, v) -> k ^ " : " ^ v) headers);
121
(match !Verbose.v land 2 <> 0, content with
122
| true, Some content when content <> "" -> Format.printf "[ez_api] sent:\n%s@." content;
123
| _ -> ());
src/request/verbose.ml
@@ -12,7 +12,7 @@
12
verbose binary flag
13
1: string received over http
14
2: string sent over http
15
- 4: library logs
+ 4: library logs or headers
16
*)
17
18
let v = match Sys.getenv_opt "EZAPICLIENT" with
0 commit comments