Package com.openai.core.http
Interface HttpRequestBody
-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public interface HttpRequestBody implements AutoCloseable
-
-
Method Summary
Modifier and Type Method Description abstract Unit
writeTo(OutputStream outputStream)
abstract String
contentType()
abstract Long
contentLength()
abstract Boolean
repeatable()
Determines if a request can be repeated in a meaningful way, for example before doing a retry. abstract Unit
close()
-
-
Method Detail
-
writeTo
abstract Unit writeTo(OutputStream outputStream)
-
contentType
abstract String contentType()
-
contentLength
abstract Long contentLength()
-
repeatable
abstract Boolean repeatable()
Determines if a request can be repeated in a meaningful way, for example before doing a retry.
The most typical case when a request can't be retried is if the request body is being streamed. In this case the body data isn't available on subsequent attempts.
-
-
-
-