Class HttpFunctionExecutor<I,O>

java.lang.Object
io.micronaut.function.client.http.HttpFunctionExecutor<I,O>
Type Parameters:
I - input type
O - output type
All Implemented Interfaces:
FunctionInvoker<I,O>, FunctionInvokerChooser, Closeable, AutoCloseable

@Singleton public class HttpFunctionExecutor<I,O> extends Object implements FunctionInvoker<I,O>, Closeable, FunctionInvokerChooser
A FunctionExecutor that uses a HttpClient to execute a remote function definition.
Since:
1.0
  • Constructor Details

    • HttpFunctionExecutor

      public HttpFunctionExecutor(io.micronaut.core.convert.ConversionService conversionService, io.micronaut.http.client.HttpClient httpClient)
      Constructor.
      Parameters:
      conversionService - The conversion service
      httpClient - The HTTP client
  • Method Details