Interface Http2ClientRequest

All Superinterfaces:
io.helidon.webclient.api.ClientRequest<Http2ClientRequest>

public interface Http2ClientRequest extends io.helidon.webclient.api.ClientRequest<Http2ClientRequest>
Request of HTTP/2 client.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.helidon.webclient.api.ClientRequest

    io.helidon.webclient.api.ClientRequest.OutputStreamHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    Outbound flow control blocking timeout.
    outputStream(io.helidon.webclient.api.ClientRequest.OutputStreamHandler outputStreamConsumer)
     
    priority(int priority)
    Priority defines a weight between 1 and 256 (inclusive) to prioritize this stream by the server.
    priorKnowledge(boolean priorKnowledge)
    Configure prior knowledge of HTTP/2 (e.g.
     
    requestPrefetch(int requestPrefetch)
    Configure request prefetch, increases both connection and stream inbound flow control window and may send window updates to inform the server, depending on flow control strategy.
    submit(Object entity)
     

    Methods inherited from interface io.helidon.webclient.api.ClientRequest

    accept, accept, connection, contentType, followRedirects, followRedirects, fragment, fragment, header, header, header, headers, headers, headers, keepAlive, maxRedirects, maxRedirects, outputStream, path, pathParam, property, proxy, queryParam, readContinueTimeout, readTimeout, request, requestEntity, resolvedUri, sendExpectContinue, skipUriEncoding, submit, tls, uri, uri, uri
  • Method Details

    • priority

      Http2ClientRequest priority(int priority)
      Priority defines a weight between 1 and 256 (inclusive) to prioritize this stream by the server. Priorities are a suggestion.
      Parameters:
      priority - priority to configure for this stream (request/response)
      Returns:
      updated request
    • priorKnowledge

      Http2ClientRequest priorKnowledge(boolean priorKnowledge)
      Configure prior knowledge of HTTP/2 (e.g. we know the server supports it and we do not need to handle upgrade).
      Parameters:
      priorKnowledge - set to true to skip HTTP/1.1 upgrade process and use prior knowledge
      Returns:
      updated request
    • requestPrefetch

      Http2ClientRequest requestPrefetch(int requestPrefetch)
      Configure request prefetch, increases both connection and stream inbound flow control window and may send window updates to inform the server, depending on flow control strategy.
      Parameters:
      requestPrefetch - inbound flow control window increment in bytes
      Returns:
      updated request
    • flowControlTimeout

      Http2ClientRequest flowControlTimeout(Duration timeout)
      Outbound flow control blocking timeout.
      Parameters:
      timeout - duration
      Returns:
      updated request
    • request

      default Http2ClientResponse request()
      Specified by:
      request in interface io.helidon.webclient.api.ClientRequest<Http2ClientRequest>
    • submit

      Http2ClientResponse submit(Object entity)
      Specified by:
      submit in interface io.helidon.webclient.api.ClientRequest<Http2ClientRequest>
    • outputStream

      Http2ClientResponse outputStream(io.helidon.webclient.api.ClientRequest.OutputStreamHandler outputStreamConsumer)
      Specified by:
      outputStream in interface io.helidon.webclient.api.ClientRequest<Http2ClientRequest>