Paket


NetUtils

Namespace: Paket

Contains methods for Network IO.

Nested types and modules

TypeDescription
Auth
AuthProvider

Credentials Provider, the paramter indicates whether we need to retry, because some previous request failed

AuthType

SecurityProtocolType.Tls ||| SecurityProtocolType.Tls11 ||| SecurityProtocolType.Tls12 ||| SecurityProtocolType.Ssl3

CustomTimeoutWebClient
RequestFailedException

Exception for request errors

RequestFailedInfo
SafeWebResult<'a>
UserPassword
ModuleDescription
AuthProvider

Functions and values

Function or valueDescription
calcEnvProxies
Signature: Lazy<Map<string,WebProxy>>
createHttpClient (url, auth)
Signature: (url:string * auth:Auth option) -> HttpClient
createWebClient (url, auth)
Signature: (url:string * auth:Auth option) -> CustomTimeoutWebClient
downloadFileSync url fileName client
Signature: url:string -> fileName:string -> client:HttpClient -> Result<unit,DomainMessage>
downloadStringSync url client
Signature: url:string -> client:HttpClient -> Result<string,DomainMessage>
envProxies ()
Signature: unit -> Map<string,WebProxy>
failIfNoSuccess resp
Signature: resp:HttpResponseMessage -> Async<unit>
getDefaultProxyFor
Signature: string -> WebProxy
getXmlFromUrl (auth, url)
Signature: (auth:AuthProvider * url:string) -> Async<string>
normalizeFeedUrl source
Signature: source:string -> string
requestStatus ex
Signature: ex:Exception -> HttpStatusCode option
useDefaultHandler
Signature: bool

Type extensions

Type extensionDescription
DownloadData(uri)
Signature: uri:string -> byte []

CompiledName: HttpClient.DownloadData

DownloadData(uri)
Signature: uri:Uri -> byte []

CompiledName: HttpClient.DownloadData

DownloadDataTaskAsync(uri, tok)
Signature: (uri:Uri * tok:CancellationToken) -> Task<byte []>

CompiledName: HttpClient.DownloadDataTaskAsync

DownloadDataTaskAsync(uri, tok)
Signature: (uri:string * tok:CancellationToken) -> Task<byte []>

CompiledName: HttpClient.DownloadDataTaskAsync

DownloadFile(uri, filePath)
Signature: (uri:string * filePath:string) -> unit

CompiledName: HttpClient.DownloadFile

DownloadFile(uri, filePath)
Signature: (uri:Uri * filePath:string) -> unit

CompiledName: HttpClient.DownloadFile

DownloadFileTaskAsync(...)
Signature: (uri:Uri * tok:CancellationToken * filePath:string) -> Task<unit>

CompiledName: HttpClient.DownloadFileTaskAsync

DownloadFileTaskAsync(...)
Signature: (uri:string * tok:CancellationToken * filePath:string) -> Task<unit>

CompiledName: HttpClient.DownloadFileTaskAsync

DownloadString(uri)
Signature: uri:string -> string

CompiledName: HttpClient.DownloadString

DownloadString(uri)
Signature: uri:Uri -> string

CompiledName: HttpClient.DownloadString

DownloadStringTaskAsync(uri, tok)
Signature: (uri:Uri * tok:CancellationToken) -> Task<string>

CompiledName: HttpClient.DownloadStringTaskAsync

DownloadStringTaskAsync(uri, tok)
Signature: (uri:string * tok:CancellationToken) -> Task<string>

CompiledName: HttpClient.DownloadStringTaskAsync

UploadFileAsMultipart(url filename)
Signature: url:Uri -> filename:string -> unit

CompiledName: WebClient.UploadFileAsMultipart

UploadFileAsMultipart(url filename)
Signature: url:Uri -> filename:string -> HttpResponseMessage

CompiledName: HttpClient.UploadFileAsMultipart

Active patterns

Active patternDescription
( |RequestStatus|_| ) ex
Signature: ex:Object -> HttpStatusCode option

CompiledName: |RequestStatus|_|

Fork me on GitHub