F# Data


Http

Namespace: FSharp.Data

Utilities for working with network via HTTP. Includes methods for downloading resources with specified headers, query parameters and HTTP body

Static members

Static memberDescription
AsyncRequest(...)
Signature: (url:string * query:(string * string) list option * headers:seq<string * string> option * httpMethod:string option * body:HttpRequestBody option * cookies:seq<string * string> option * cookieContainer:CookieContainer option * silentHttpErrors:bool option * responseEncodingOverride:string option * customizeHttpRequest:(HttpWebRequest -> HttpWebRequest) option * timeout:int option) -> Async<HttpResponse>

Download an HTTP web resource from the specified URL asynchronously (allows specifying query string parameters and HTTP headers including headers that have to be handled specially - such as Accept, Content-Type & Referer) The body for POST request can be specified either as text or as a list of parameters that will be encoded, and the method will automatically be set if not specified

AsyncRequestStream(...)
Signature: (url:string * query:(string * string) list option * headers:seq<string * string> option * httpMethod:string option * body:HttpRequestBody option * cookies:seq<string * string> option * cookieContainer:CookieContainer option * silentHttpErrors:bool option * customizeHttpRequest:(HttpWebRequest -> HttpWebRequest) option * timeout:int option) -> Async<HttpResponseWithStream>

Download an HTTP web resource from the specified URL synchronously (allows specifying query string parameters and HTTP headers including headers that have to be handled specially - such as Accept, Content-Type & Referer) The body for POST request can be specified either as text or as a list of parameters that will be encoded, and the method will automatically be set if not specified

AsyncRequestString(...)
Signature: (url:string * query:(string * string) list option * headers:seq<string * string> option * httpMethod:string option * body:HttpRequestBody option * cookies:seq<string * string> option * cookieContainer:CookieContainer option * silentHttpErrors:bool option * responseEncodingOverride:string option * customizeHttpRequest:(HttpWebRequest -> HttpWebRequest) option * timeout:int option) -> Async<string>

Download an HTTP web resource from the specified URL asynchronously (allows specifying query string parameters and HTTP headers including headers that have to be handled specially - such as Accept, Content-Type & Referer) The body for POST request can be specified either as text or as a list of parameters that will be encoded, and the method will automatically be set if not specified

Request(...)
Signature: (url:string * query:(string * string) list option * headers:seq<string * string> option * httpMethod:string option * body:HttpRequestBody option * cookies:seq<string * string> option * cookieContainer:CookieContainer option * silentHttpErrors:bool option * responseEncodingOverride:string option * customizeHttpRequest:(HttpWebRequest -> HttpWebRequest) option * timeout:int option) -> HttpResponse

Download an HTTP web resource from the specified URL synchronously (allows specifying query string parameters and HTTP headers including headers that have to be handled specially - such as Accept, Content-Type & Referer) The body for POST request can be specified either as text or as a list of parameters that will be encoded, and the method will automatically be set if not specified

RequestStream(...)
Signature: (url:string * query:(string * string) list option * headers:seq<string * string> option * httpMethod:string option * body:HttpRequestBody option * cookies:seq<string * string> option * cookieContainer:CookieContainer option * silentHttpErrors:bool option * customizeHttpRequest:(HttpWebRequest -> HttpWebRequest) option * timeout:int option) -> HttpResponseWithStream

Download an HTTP web resource from the specified URL synchronously (allows specifying query string parameters and HTTP headers including headers that have to be handled specially - such as Accept, Content-Type & Referer) The body for POST request can be specified either as text or as a list of parameters that will be encoded, and the method will automatically be set if not specified

RequestString(...)
Signature: (url:string * query:(string * string) list option * headers:seq<string * string> option * httpMethod:string option * body:HttpRequestBody option * cookies:seq<string * string> option * cookieContainer:CookieContainer option * silentHttpErrors:bool option * responseEncodingOverride:string option * customizeHttpRequest:(HttpWebRequest -> HttpWebRequest) option * timeout:int option) -> string

Download an HTTP web resource from the specified URL synchronously (allows specifying query string parameters and HTTP headers including headers that have to be handled specially - such as Accept, Content-Type & Referer) The body for POST request can be specified either as text or as a list of parameters that will be encoded, and the method will automatically be set if not specified

Fork me on GitHub