Package africa.sendbyte.http
Class SendByteResponse
java.lang.Object
africa.sendbyte.http.SendByteResponse
A minimal, transport-agnostic view of an HTTP response from the SendByte API.
Internal SDK type.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFunctional lookup so transports can adapt their own header representation. -
Constructor Summary
ConstructorsConstructorDescriptionSendByteResponse(int statusCode, String body, SendByteResponse.HeaderLookup headers) -
Method Summary
Modifier and TypeMethodDescriptionbody()Case-insensitive header lookup; returnsnullwhen absent.booleanint
-
Constructor Details
-
SendByteResponse
-
-
Method Details
-
statusCode
public int statusCode() -
body
-
header
Case-insensitive header lookup; returnsnullwhen absent. -
isSuccessful
public boolean isSuccessful()
-