public interface HttpRequestHandler extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
boolean |
afterSend(Response response)
Invoked after an HTTP response is received and will determine if a new access token should be retrieved.
|
BeforeSendResult |
beforeSend(Request request)
Invoked before an HTTP request is sent.
|
void |
close()
An implementation of
AutoCloseable that does not throw any checked exceptions. |
BeforeSendResult beforeSend(Request request)
request
- The HTTP request.BeforeSendResult
boolean afterSend(Response response)
response
- The HTTP response.void close()
AutoCloseable
that does not throw any checked exceptions.
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.