Package discord4j.oauth2
Interface DiscordOAuth2ResponseHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An I/O handler to customize the response given by a
DiscordOAuth2Server after a login process is completed.-
Method Summary
Modifier and TypeMethodDescriptionhandle(DiscordOAuth2Client client, HttpServerRequest req, HttpServerResponse res) Handle an incoming request to provide a response after an OAuth2 login is completed.
-
Method Details
-
handle
Handle an incoming request to provide a response after an OAuth2 login is completed.- Parameters:
client- an authenticated client to perform API operations on behalf of the userreq- a reactor-netty HTTP request accessorsres- a reactor-netty HTTP response accessors- Returns:
- the response sent to the user, typically derived from one of the
send*methods inHttpServerResponse
-