ExtendedJsonRestServicesStream Method (Uri, HttpMethod, FuncHttpWebResponse, Boolean, Response, Stream, Int32, Int64, DictionaryString, String, DictionaryString, String, RequestSettings, ActionInt64) |
This API is preliminary and subject to change.
Namespace: net.openstack.Providers.RackspaceAssembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax public override Response Stream(
Uri url,
HttpMethod method,
Func<HttpWebResponse, bool, Response> responseBuilderCallback,
Stream content,
int bufferSize,
long maxReadLength,
Dictionary<string, string> headers,
Dictionary<string, string> queryStringParameters,
RequestSettings settings,
Action<long> progressUpdated
)
Public Overrides Function Stream (
url As Uri,
method As HttpMethod,
responseBuilderCallback As Func(Of HttpWebResponse, Boolean, Response),
content As Stream,
bufferSize As Integer,
maxReadLength As Long,
headers As Dictionary(Of String, String),
queryStringParameters As Dictionary(Of String, String),
settings As RequestSettings,
progressUpdated As Action(Of Long)
) As Response
public:
virtual Response^ Stream(
Uri^ url,
HttpMethod method,
Func<HttpWebResponse^, bool, Response^>^ responseBuilderCallback,
Stream^ content,
int bufferSize,
long long maxReadLength,
Dictionary<String^, String^>^ headers,
Dictionary<String^, String^>^ queryStringParameters,
RequestSettings^ settings,
Action<long long>^ progressUpdated
) override
abstract Stream :
url : Uri *
method : HttpMethod *
responseBuilderCallback : Func<HttpWebResponse, bool, Response> *
content : Stream *
bufferSize : int *
maxReadLength : int64 *
headers : Dictionary<string, string> *
queryStringParameters : Dictionary<string, string> *
settings : RequestSettings *
progressUpdated : Action<int64> -> Response
override Stream :
url : Uri *
method : HttpMethod *
responseBuilderCallback : Func<HttpWebResponse, bool, Response> *
content : Stream *
bufferSize : int *
maxReadLength : int64 *
headers : Dictionary<string, string> *
queryStringParameters : Dictionary<string, string> *
settings : RequestSettings *
progressUpdated : Action<int64> -> Response
Parameters
- url
- Type: SystemUri
- method
- Type: JSIStudios.SimpleRESTServices.ClientHttpMethod
- responseBuilderCallback
- Type: SystemFuncHttpWebResponse, Boolean, Response
- content
- Type: System.IOStream
- bufferSize
- Type: SystemInt32
- maxReadLength
- Type: SystemInt64
- headers
- Type: System.Collections.GenericDictionaryString, String
- queryStringParameters
- Type: System.Collections.GenericDictionaryString, String
- settings
- Type: JSIStudios.SimpleRESTServices.ClientRequestSettings
- progressUpdated
- Type: SystemActionInt64
Return Value
Type:
ResponseRemarks
This method expands on the base implementation by avoiding writing to the request stream
if
HaveResponse is
, which prevents
the requirement that data be sent in the case where sending the
Expect: 100-Continue
header resulted in an immediate error response with first send a
Continue.
Version Information .NET Framework
Supported in: 4.5
openstack.net
Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also