Package org.stellar.sdk.responses
Class Response
java.lang.Object
org.stellar.sdk.responses.Response
- Direct Known Subclasses:
AccountResponse,AssetResponse,ClaimableBalanceResponse,EffectResponse,FeeStatsResponse,LedgerResponse,LiquidityPoolResponse,OfferResponse,OperationResponse,OrderBookResponse,Page,PathResponse,RootResponse,SorobanRpcResponse,SubmitTransactionResponse,TradeAggregationResponse,TradeResponse,TransactionResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns X-RateLimit-Limit header from the response.intReturns X-RateLimit-Remaining header from the response.intReturns X-RateLimit-Reset header from the response.voidsetHeaders(okhttp3.Headers headers)
-
Constructor Details
-
Response
public Response()
-
-
Method Details
-
setHeaders
public void setHeaders(okhttp3.Headers headers) -
getRateLimitLimit
public int getRateLimitLimit()Returns X-RateLimit-Limit header from the response. This number represents the he maximum number of requests that the current client can make in one hour.- See Also:
-
getRateLimitRemaining
public int getRateLimitRemaining()Returns X-RateLimit-Remaining header from the response. The number of remaining requests for the current window.- See Also:
-
getRateLimitReset
public int getRateLimitReset()Returns X-RateLimit-Reset header from the response. Seconds until a new window starts.- See Also:
-