Interface HttpDataSourceConnector.HttpTransport
- Enclosing class:
HttpDataSourceConnector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The I/O boundary — sends a request and returns the response. The default
implementation uses
HttpClient; tests inject a fake.-
Method Summary
Modifier and TypeMethodDescriptionSendsrequestand returns the response.
-
Method Details
-
fetch
HttpDataSourceConnector.HttpFetchResult fetch(HttpDataSourceConnector.HttpRequestSpec request) throws IOException, InterruptedException Sendsrequestand returns the response.- Parameters:
request- the resolved request- Returns:
- the status code + body
- Throws:
IOException- on a transport failureInterruptedException- if the calling thread is interrupted
-