LuciadCPillar C# 2023.1.04
|
A builder of luciad::HttpRequests. More...
A builder of luciad::HttpRequests.
Instances of HttpRequest::Builder are created by calling luciad::HttpRequest::newBuilder. The builder can be used to configure the request URI, the request method (default is GET unless explicitly set), specific request headers, etc. The build method returns a new luciad::HttpRequest each time it is invoked. Once built an HttpRequest is immutable. 2023.0
|
inline |
|
inline |
Sets the HTTP request content.
This parameter is optional unless this HttpRequest's method has been set to POST or PUT. If not set when the request method is POST or PUT, HttpRequest::Builder::build will throw an exception.
body
the request content.
this builder.
|
inline |
Returns an luciad::HttpRequest, based on the properties set on this builder.
an luciad::HttpRequest, based on the properties set on this builder.
luciad::LogicException
if a URI has not been set.
|
inline |
|
inline |
|
inline |
Sets the given name value pair to the set of headers for this request.
name
header name
value
header value
this builder.
|
inline |
Sets the request method of this builder.
This parameter is optional. If not set, default is GET.
method
the method to use.
this builder.
|
inline |
|
inline |
Sets the given name value pair to the set of query parameters for this request.
name
query parameter name.
value
query parameter value.
this builder.
|
inline |
Sets this HttpRequest's request URI.
The provided URI can have a query string. This parameter is mandatory. If it is not set, HttpRequest::Builder::build will throw an exception.
uri
request URI string.
this builder.