HttpClientrequestForStream Method A Sandcastle Documented Class Library
Make an API request and return the raw data from the response as an InputStream.

Namespace: Ontotext.S4.client
Assembly: S4ClientLibrary (in S4ClientLibrary.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public Stream requestForStream(
	string target,
	string method,
	ServiceRequest requestBody,
	WebHeaderCollection extraHeaders
)

Parameters

target
Type: SystemString
the URL to request (relative URLs will resolve against the {@link #getBaseUrl() base URL}).
method
Type: SystemString
the request method (GET, POST, DELETE, etc.)
requestBody
Type: Ontotext.S4.serviceServiceRequest
the object that should be serialized to JSON as the request body. If
null
no request body is sent
extraHeaders
Type: System.NetWebHeaderCollection
any additional HTTP headers, specified as an alternating sequence of header names and values

Return Value

Type: Stream
for a successful response, the response stream, or
null
for a 201 response
See Also

Reference