Class RequestOptions.Builder

  • Enclosing class:
    RequestOptions

    public static class RequestOptions.Builder
    extends java.lang.Object
    • Method Detail

      • addHeader

        public void addHeader​(java.lang.String name,
                              java.lang.String value)
        Add the provided header to the request.
      • setHttpAsyncResponseConsumerFactory

        public void setHttpAsyncResponseConsumerFactory​(HttpAsyncResponseConsumerFactory httpAsyncResponseConsumerFactory)
        Set the HttpAsyncResponseConsumerFactory used to create one HttpAsyncResponseConsumer callback per retry. Controls how the response body gets streamed from a non-blocking HTTP connection on the client side.