Package glair.vision.model
Class Request.RequestBuilder
java.lang.Object
glair.vision.model.Request.RequestBuilder
- Enclosing class:
- Request
Builder class for creating instances of HTTP request configurations.
-
Constructor Summary
ConstructorsConstructorDescriptionRequestBuilder(String path, String method) Constructs a new request builder with the specified path and HTTP method. -
Method Summary
-
Constructor Details
-
RequestBuilder
Constructs a new request builder with the specified path and HTTP method.- Parameters:
path- The request path.method- The HTTP method (e.g., GET, POST).
-
-
Method Details
-
body
Sets the HTTP request body.- Parameters:
body- The request body as an HttpEntity.- Returns:
- The builder instance for method chaining.
-
build
Builds a new instance of an HTTP request with the configured options.- Returns:
- The constructed Request instance.
-