@@ -129,7 +129,7 @@ type ('body,'ret) http_request_ =
129129 ?http_1_0:bool ->
130130 ?headers:string list ->
131131 ?body:'body ->
132- http_action -> Uri .t -> 'ret
132+ http_action -> Lurl .t -> 'ret
133133
134134type 'ret http_request = ([ `Form of (string * string ) list | `Raw of string * string ], 'ret ) http_request_
135135
@@ -154,7 +154,7 @@ module type HTTP = sig
154154 ?http_1_0 : bool ->
155155 ?headers : string list ->
156156 ?action : http_action ->
157- Uri .t ->
157+ Lurl .t ->
158158 (string * string ) list -> [> `Error of string | `Ok of string ] IO .t
159159end
160160
@@ -253,8 +253,8 @@ module Http (IO : IO_TYPE) (Curl_IO : CURL with type 'a t = 'a IO.t) : HTTP with
253253
254254 (* NOTE don't forget to set http_1_0=true when sending requests to a Httpev-based server *)
255255 (* Don't use curl_setheaders when using ?headers option *)
256- let http_request' ?ua ?timeout ?(verbose =false ) ?(setup =ignore) ?timer ?max_size ?(http_1_0 =false ) ?headers ?body (action :http_action ) (url :Uri .t ) =
257- let url = Uri . to_string url in
256+ let http_request' ?ua ?timeout ?(verbose =false ) ?(setup =ignore) ?timer ?max_size ?(http_1_0 =false ) ?headers ?body (action :http_action ) (url :Lurl .t ) =
257+ let url = Lurl . to_string url in
258258 let open Curl in
259259 let action_name = string_of_http_action action in
260260
@@ -436,7 +436,7 @@ let string_of_http_code = function
436436| 411 -> " Length Required"
437437| 412 -> " Precondition Failed"
438438| 413 -> " Request Entity Too Large"
439- | 414 -> " Request-URI Too Long"
439+ | 414 -> " Request-Lurl Too Long"
440440| 415 -> " Unsupported Media Type"
441441| 416 -> " Requested Range Not Satisfiable"
442442| 417 -> " Expectation Failed"
0 commit comments