Package com.linecorp.armeria.client
Interface RequestOptions
@UnstableApi public interface RequestOptions
A
RequestOptions for an HttpRequest.-
Method Summary
Modifier and Type Method Description Map<AttributeKey<?>,Object>attrs()Returns theMapof all attributes thisRequestOptionscontains.static RequestOptionsBuilderbuilder()Returns a newly createdRequestOptionsBuilder.static RequestOptionsBuilderbuilder(RequestOptions requestOptions)Returns a newly createdRequestOptionsBuilderwith the specifiedRequestOptions.longmaxResponseLength()Returns the maximum length of the receivedResponse.static RequestOptionsof()Returns an emptyRequestOptions.longresponseTimeoutMillis()longwriteTimeoutMillis()Returns the amount of time allowed until the initial write attempt of the currentRequestsucceeds.
-
Method Details
-
of
Returns an emptyRequestOptions. -
builder
Returns a newly createdRequestOptionsBuilder. -
builder
Returns a newly createdRequestOptionsBuilderwith the specifiedRequestOptions. -
responseTimeoutMillis
long responseTimeoutMillis() -
writeTimeoutMillis
long writeTimeoutMillis()Returns the amount of time allowed until the initial write attempt of the currentRequestsucceeds.0disables the limit.-1disables this option and the write timeout of a client will be used instead. -
maxResponseLength
long maxResponseLength()Returns the maximum length of the receivedResponse.0disables the limit.-1disables this option and the maximum response length of a client will be used instead. -
attrs
Map<AttributeKey<?>,Object> attrs()Returns theMapof all attributes thisRequestOptionscontains.
-