public static interface HttpClient.Request
{
@code
// Simple GET request
Request request = Request.get("/v1/bdbs").build();
// GET with query parameters and headers
Request request = Request.get("/v1/bdbs").queryParam("fields", "uid,endpoints").header("Authorization", "Bearer token")
.build();
// Future: POST with body
// Request request = Request.post("/v1/bdbs")
// .header("Content-Type", "application/json")
// .body("{\"name\":\"mydb\"}")
// .build();
}
| Modifier and Type | Interface and Description |
|---|---|
static interface |
HttpClient.Request.RequestBuilder
Builder for constructing HTTP requests.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpClient.Request.RequestBuilder |
get(String path)
Creates a new GET request builder.
|
Map<String,String> |
getHeaders()
Gets the request headers as a map.
|
HttpClient.Method |
getMethod()
Gets the HTTP method.
|
String |
getPath()
Gets the request path (e.g., "/v1/bdbs").
|
Map<String,String> |
getQueryParams()
Gets the query parameters as a map.
|
String |
getUri()
Gets the full request URI including path and query string.
|
HttpClient.Method getMethod()
String getPath()
Map<String,String> getQueryParams()
null.Map<String,String> getHeaders()
null.String getUri()
static HttpClient.Request.RequestBuilder get(String path)
path - the request path, must not be null.Copyright © 2026 lettuce.io. All rights reserved.