F# Data


Http

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:(string * string) list option * httpMethod:string option * body:HttpRequestBody option * cookies:(string * string) list option * cookieContainer:CookieContainer option * silentHttpErrors:bool option * responseEncodingOverride:string option * customizeHttpRequest:(HttpWebRequest -> HttpWebRequest) 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:(string * string) list option * httpMethod:string option * body:HttpRequestBody option * cookies:(string * string) list option * cookieContainer:CookieContainer option * silentHttpErrors:bool option * customizeHttpRequest:(HttpWebRequest -> HttpWebRequest) 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:(string * string) list option * httpMethod:string option * body:HttpRequestBody option * cookies:(string * string) list option * cookieContainer:CookieContainer option * silentHttpErrors:bool option * responseEncodingOverride:string option * customizeHttpRequest:(HttpWebRequest -> HttpWebRequest) 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:(string * string) list option * httpMethod:string option * body:HttpRequestBody option * cookies:(string * string) list option * cookieContainer:CookieContainer option * silentHttpErrors:bool option * responseEncodingOverride:string option * customizeHttpRequest:(HttpWebRequest -> HttpWebRequest) 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:(string * string) list option * httpMethod:string option * body:HttpRequestBody option * cookies:(string * string) list option * cookieContainer:CookieContainer option * silentHttpErrors:bool option * customizeHttpRequest:(HttpWebRequest -> HttpWebRequest) 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:(string * string) list option * httpMethod:string option * body:HttpRequestBody option * cookies:(string * string) list option * cookieContainer:CookieContainer option * silentHttpErrors:bool option * responseEncodingOverride:string option * customizeHttpRequest:(HttpWebRequest -> HttpWebRequest) 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