java.lang.Object
org.miaixz.bus.http.plugin.httpz.HttpRequest
org.miaixz.bus.http.plugin.httpz.DeleteRequest
Represents an HTTP DELETE request. This class encapsulates all the parameters and configuration for a DELETE request.
DELETE requests are used to delete a specified resource and typically do not have a request body.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields inherited from class org.miaixz.bus.http.plugin.httpz.HttpRequest
body, builder, encodedParams, headers, id, list, multipartBody, params, url -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RequestbuildRequest(RequestBody requestBody) Builds the final HttpdRequestobject.protected RequestBodyBuilds the request body.Methods inherited from class org.miaixz.bus.http.plugin.httpz.HttpRequest
build, createRequest, createRequestBody, getId, headers
-
Constructor Details
-
DeleteRequest
public DeleteRequest(String url, Object tag, Map<String, String> params, Map<String, String> headers, String id) Constructs a newDeleteRequest.- Parameters:
url- The request URL.tag- A tag for this request, used for cancellation.params- The query parameters for the request.headers- The request headers.id- A unique identifier for this request.
-
-
Method Details
-
buildRequestBody
Builds the request body. For a DELETE request, the body is always null.- Specified by:
buildRequestBodyin classHttpRequest- Returns:
- Always returns
null.
-
buildRequest
Builds the final HttpdRequestobject.- Specified by:
buildRequestin classHttpRequest- Parameters:
requestBody- The request body, which will be null for a DELETE request.- Returns:
- The constructed
Requestobject.
-