Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Quests.SessionSourceSessions can be used to make multiple requests to a host that share the underlying TCP connection. Requests with sessions are made in the same way as ones without, with Quests.get replaced by Session.get a_session.
Create a session with a maximum of max_pool_size connections per host.
val request :
t ->
Cohttp.Code.meth ->
?params:(string * string) list ->
?data:Request.payload ->
?headers:(string * string) list ->
?auth:Request.authentication ->
?follow_redirects:bool ->
string ->
Response.t Lwt.tval get :
t ->
?params:(string * string) list ->
?data:Request.payload ->
?headers:(string * string) list ->
?auth:Request.authentication ->
?follow_redirects:bool ->
string ->
Response.t Lwt.tval post :
t ->
?params:(string * string) list ->
?data:Request.payload ->
?headers:(string * string) list ->
?auth:Request.authentication ->
?follow_redirects:bool ->
string ->
Response.t Lwt.tval put :
t ->
?params:(string * string) list ->
?data:Request.payload ->
?headers:(string * string) list ->
?auth:Request.authentication ->
?follow_redirects:bool ->
string ->
Response.t Lwt.tval delete :
t ->
?params:(string * string) list ->
?data:Request.payload ->
?headers:(string * string) list ->
?auth:Request.authentication ->
?follow_redirects:bool ->
string ->
Response.t Lwt.t