Uses of Class
com.google.genai.gaos.utils.transport.HttpBody
Packages that use HttpBody
-
Uses of HttpBody in com.google.genai.gaos.utils
Methods in com.google.genai.gaos.utils that return HttpBodyModifier and TypeMethodDescriptionSerializedBody.body()Multipart.httpBody()Blob.toHttpBody()Returns this blob's content as a transport request body.Constructors in com.google.genai.gaos.utils with parameters of type HttpBody -
Uses of HttpBody in com.google.genai.gaos.utils.transport
Methods in com.google.genai.gaos.utils.transport that return HttpBodyModifier and TypeMethodDescriptionstatic HttpBodyHttpBody.empty()Returns an empty, repeatable body.static HttpBodyHttpBody.of(byte[] bytes) Returns a repeatable body backed by the given bytes.static HttpBodyReturns a repeatable body containing the UTF-8 bytes of the given text.static HttpBodyReturns a repeatable body that reads the given file on each call tostream().static HttpBodyHttpBody.ofInputStream(InputStream in) Returns a one-shot body backed by the given stream.static HttpBodyHttpBody.ofInputStream(InputStream in, long contentLength) Returns a one-shot body backed by the given stream, reporting the given content length (-1 if unknown).Methods in com.google.genai.gaos.utils.transport that return types with arguments of type HttpBodyMethods in com.google.genai.gaos.utils.transport with parameters of type HttpBody