Package com.openai.core.http
Interface HttpResponse
-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public interface HttpResponse implements AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceHttpResponse.Handler
-
Method Summary
Modifier and Type Method Description abstract IntegerstatusCode()abstract Headersheaders()Optional<String>requestId()Returns the value of the x-request-idheader, or an empty Optional if there's no such header in the response.abstract InputStreambody()abstract Unitclose()Overridden from AutoCloseable to not have a checked exception in its signature. -
-
Method Detail
-
statusCode
abstract Integer statusCode()
-
requestId
Optional<String> requestId()
Returns the value of the
x-request-idheader, or an empty Optional if there's no such header in the response.
-
body
abstract InputStream body()
-
close
abstract Unit close()
Overridden from AutoCloseable to not have a checked exception in its signature.
-
-
-
-