Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

WebClient.OpenWriteAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 8.0.9673)

OpenWriteAsync(String, Object)

Opens a stream that is used to send data to provided URI.

Declaration
public Task<Stream> OpenWriteAsync(string uri, object state = null)
Parameters
Type Name Description
String uri

Uri to send data to.

Object state

An object containing state information for this request.

Returns
Type Description
Task<Stream>

Opened stream.

Remarks

HTTP method POST is used.

OpenWriteAsync(Uri, Object)

Opens a stream that is used to send data to provided URI.

Declaration
public Task<Stream> OpenWriteAsync(Uri uri, object state = null)
Parameters
Type Name Description
Uri uri

Uri to send data to.

Object state

An object containing state information for this request.

Returns
Type Description
Task<Stream>

Opened stream.

Remarks

HTTP method POST is used.

OpenWriteAsync(String, String, Object)

Opens a stream that is used to send data to provided URI.

Declaration
public Task<Stream> OpenWriteAsync(string uri, string method, object state = null)
Parameters
Type Name Description
String uri

Uri to send data to.

String method

HTTP method to use when sending the data from the stream.

Object state

An object containing state information for this request.

Returns
Type Description
Task<Stream>

Opened stream.

OpenWriteAsync(Uri, String, Object)

Opens a stream that is used to send data to provided URI.

Declaration
public Task<Stream> OpenWriteAsync(Uri uri, string method, object state = null)
Parameters
Type Name Description
Uri uri

Uri to send data to.

String method

HTTP method to use when sending the data from the stream.

Object state

An object containing state information for this request.

Returns
Type Description
Task<Stream>

Opened stream.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies