类 HttpRequest
java.lang.Object
io.agentscope.core.model.transport.HttpRequest
HTTP request encapsulation for the transport layer.
This class represents an HTTP request with URL, method, headers, and body. Use the builder pattern to construct requests.
-
嵌套类概要
嵌套类 -
方法概要
-
方法详细资料
-
getUrl
Get the request URL.- 返回:
- the URL
-
getMethod
Get the HTTP method.- 返回:
- the method (GET, POST, etc.)
-
getHeaders
Get the request headers.- 返回:
- an unmodifiable map of headers
-
getBody
Get the request body.- 返回:
- the body string, or null if no body
-
builder
Create a new builder for HttpRequest.- 返回:
- a new Builder instance
-