Class HttpRequest
java.lang.Object
com.google.genai.gaos.utils.transport.HttpRequest
An immutable HTTP request that is independent of the underlying HTTP
client. Use
builder() to create a request and toBuilder()
to copy an existing request for modification (for example in a hook).-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
method
Returns the HTTP method (uppercase, for exampleGET). -
uri
-
headers
Returns a copy of the request headers. Header names are case-insensitive. Mutating the returnedHeadersdoes not affect this request; usetoBuilder()to derive a modified request. -
body
-
builder
-
toBuilder
Returns a new builder initialized with a copy of this request. -
toString
-