@FunctionalInterface
public interface IssuedRequestHandler
Modifier and Type | Field and Description |
---|---|
static IssuedRequestHandler |
AUTO_REQUEST_HANDLER
Handler that just issues the request and returns the response
|
Modifier and Type | Method and Description |
---|---|
ScrapingResponse |
issueRequest(ScrapingSession session,
ScrapingRequest.Builder requestBuilder,
boolean asAsync)
Called when the request is to be sent.
|
@Nullable static final IssuedRequestHandler AUTO_REQUEST_HANDLER
@Nullable ScrapingResponse issueRequest(@NotNull ScrapingSession session, @NotNull ScrapingRequest.Builder requestBuilder, boolean asAsync)
session
- The current scraping sessionrequestBuilder
- The request ready to be built and sent (if that's what you intend to do) or is a builder and can be modified firstasAsync
- True if the request is to be sent asynchronously, false otherwise