org.apache.hc.core5.http.impl.io

## Class HttpService.Builder

- java.lang.Object
- - org.apache.hc.core5.http.impl.io.HttpService.Builder

- Enclosing class:
    HttpService

      public static final class HttpService.Builder
      extends Object

  Builder for `HttpService`.
  Since:
    5.2

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `HttpService` | `build()` Create a new HTTP service.
    `HttpService.Builder` | `withConnectionReuseStrategy(ConnectionReuseStrategy connReuseStrategy)`
    `HttpService.Builder` | `withHttp1StreamListener(Http1StreamListener streamListener)`
    `HttpService.Builder` | `withHttpProcessor(HttpProcessor processor)`
    `HttpService.Builder` | `withHttpServerRequestHandler(HttpServerRequestHandler requestHandler)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### withHttpProcessor

          public HttpService.Builder withHttpProcessor(HttpProcessor processor)

    - #### withHttpServerRequestHandler

          public HttpService.Builder withHttpServerRequestHandler(HttpServerRequestHandler requestHandler)

    - #### withConnectionReuseStrategy

          public HttpService.Builder withConnectionReuseStrategy(ConnectionReuseStrategy connReuseStrategy)

    - #### withHttp1StreamListener

          public HttpService.Builder withHttp1StreamListener(Http1StreamListener streamListener)

    - #### build

          public HttpService build()

      Create a new HTTP service.
      Since:
        5.2

Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.