@@ -113,9 +113,9 @@ module Server : sig
113
113
(* * [read_chunked request chunk_handler] is [updated_headers] if
114
114
"Transfer-Encoding" header value is "chunked" in [headers] and all chunks
115
115
in [reader] are read successfully. [updated_headers] is the updated
116
- headers as specified by the chunked encoding algorithm in
117
- https: //datatracker.ietf.org/doc/html/rfc7230#section-4.1.3. Otherwise it
118
- is [Error err] where [err] is the error text.
116
+ headers as specified by the chunked encoding algorithm in https:
117
+ //datatracker.ietf.org/doc/html/rfc7230#section-4.1.3. Otherwise it is
118
+ [Error err] where [err] is the error text.
119
119
120
120
@raise Invalid_argument
121
121
if [Transfer-Encoding] header in [headers] is not specified as "chunked" *)
@@ -158,14 +158,71 @@ end
158
158
module Client : sig
159
159
type response = Http.Response .t * Reader .t
160
160
161
+ val get :
162
+ ?version : Http.Version .t ->
163
+ ?headers : Http.Header .t ->
164
+ Eio.Stdenv .t ->
165
+ Eio.Switch .t ->
166
+ Eio.Net.Sockaddr .stream ->
167
+ Uri .t ->
168
+ response
169
+
170
+ val head :
171
+ ?version : Http.Version .t ->
172
+ ?headers : Http.Header .t ->
173
+ Eio.Stdenv .t ->
174
+ Eio.Switch .t ->
175
+ Eio.Net.Sockaddr .stream ->
176
+ Uri .t ->
177
+ response
178
+
179
+ val delete :
180
+ ?version : Http.Version .t ->
181
+ ?headers : Http.Header .t ->
182
+ Eio.Stdenv .t ->
183
+ Eio.Switch .t ->
184
+ Eio.Net.Sockaddr .stream ->
185
+ Uri .t ->
186
+ response
187
+
188
+ val post :
189
+ ?version : Http.Version .t ->
190
+ ?headers : Http.Header .t ->
191
+ ?body : Body .t ->
192
+ Eio.Stdenv .t ->
193
+ Eio.Switch .t ->
194
+ Eio.Net.Sockaddr .stream ->
195
+ Uri .t ->
196
+ response
197
+
198
+ val put :
199
+ ?version : Http.Version .t ->
200
+ ?headers : Http.Header .t ->
201
+ ?body : Body .t ->
202
+ Eio.Stdenv .t ->
203
+ Eio.Switch .t ->
204
+ Eio.Net.Sockaddr .stream ->
205
+ Uri .t ->
206
+ response
207
+
208
+ val patch :
209
+ ?version : Http.Version .t ->
210
+ ?headers : Http.Header .t ->
211
+ ?body : Body .t ->
212
+ Eio.Stdenv .t ->
213
+ Eio.Switch .t ->
214
+ Eio.Net.Sockaddr .stream ->
215
+ Uri .t ->
216
+ response
217
+
161
218
val connect :
219
+ ?meth : Http.Method .t ->
162
220
?version : Http.Version .t ->
163
221
?headers : Http.Header .t ->
164
222
?body : Body .t ->
165
223
Eio.Stdenv .t ->
166
224
Eio.Switch .t ->
167
225
Eio.Net.Sockaddr .stream ->
168
- Http.Method .t ->
169
226
Uri .t ->
170
227
response
171
228
end
0 commit comments