Interface ExternalApiReader.RequestBuilder

Enclosing class:
ExternalApiReader
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 ExternalApiReader.RequestBuilder
Request builder functional interface. Allows users to customize how to build HTTP requests.
  • Method Summary

    Modifier and Type
    Method
    Description
    okhttp3.Request
    buildRequest(String filePath, okhttp3.OkHttpClient httpClient)
    Builds HTTP request based on file path.
  • Method Details

    • buildRequest

      okhttp3.Request buildRequest(String filePath, okhttp3.OkHttpClient httpClient) throws Exception
      Builds HTTP request based on file path.
      Parameters:
      filePath - File path
      httpClient - OkHttpClient instance (can be used for complex scenarios like file upload)
      Returns:
      Built OkHttp Request
      Throws:
      Exception - if building fails