HttpClientrequestT Method A Sandcastle Documented Class Library
Make an API request and parse the JSON response into a new object.

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

public T request<T>(
	string target,
	string method,
	T responseType,
	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.)
responseType
Type: T

[Missing <param name="responseType"/> documentation for "M:Ontotext.S4.client.HttpClient.request``1(System.String,System.String,``0,Ontotext.S4.service.ServiceRequest,System.Net.WebHeaderCollection)"]

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

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Ontotext.S4.client.HttpClient.request``1(System.String,System.String,``0,Ontotext.S4.service.ServiceRequest,System.Net.WebHeaderCollection)"]

Return Value

Type: T
for a successful response, the deserialized response body, or
null
for a 201 response
See Also

Reference