LuciadCPillar C# 2023.1.04
|
Builder for the luciad::HttpResponse class. More...
Public Member Functions | |
Builder (Luciad.Net.Http.HttpResponse.Builder other) | |
Luciad.Net.Http.HttpResponse.Builder | Body (Luciad.Containers.DataEntity body) |
Sets the HTTP response content. More... | |
Luciad.Net.Http.HttpResponse | Build () |
Returns an luciad::HttpResponse based on the properties set on this builder. More... | |
void | Dispose () |
Luciad.Net.Http.HttpResponse.Builder | Header (Luciad.Net.Http.HttpHeader header) |
Luciad.Net.Http.HttpResponse.Builder | Header (string name, string value) |
Sets the given name value pair to the set of headers for this response. More... | |
Luciad.Net.Http.HttpResponse.Builder | StatusCode (int statusCode) |
Sets the status code of the HTTP response. More... | |
Builder for the luciad::HttpResponse class.
Instances of HttpRequest::Builder are created by calling luciad::HttpResponse::newBuilder. 2023.0
|
inline |
|
inline |
Sets the HTTP response content.
This parameter is optional.
body
the response content.
this builder.
|
inline |
Returns an luciad::HttpResponse based on the properties set on this builder.
an luciad::HttpResponse.
luciad::LogicException
if the status code for this response has not been set.
|
inline |
|
inline |
|
inline |
Sets the given name value pair to the set of headers for this response.
name
header name
value
header value
this builder.
|
inline |
Sets the status code of the HTTP response.
This parameter is mandatory. If it is not set, HttpResponse::Builder::build will throw an exception.
statusCode
the status code for this response.
this builder.