Interface HttpUtil.HttpClientConsumer<T>

Type Parameters:
T - type
Enclosing class:
HttpUtil
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface HttpUtil.HttpClientConsumer<T>
Http client consumer
  • Method Summary

    Modifier and Type
    Method
    Description
    accept(@NotNull HttpClient client)
    Accepts a task with an http client
  • Method Details

    • accept

      @NotNull T accept(@NotNull @NotNull HttpClient client) throws Exception
      Accepts a task with an http client
      Parameters:
      client - client
      Returns:
      value
      Throws:
      Exception - exception