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.
@FunctionalInterface @Experimental public interface DiscordOAuth2ResponseHandler
An I/O handler to customize the response given by aDiscordOAuth2Server
after a login process is completed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Publisher<Void>
handle(DiscordOAuth2Client client, HttpServerRequest req, HttpServerResponse res)
Handle an incoming request to provide a response after an OAuth2 login is completed.
-
-
-
Method Detail
-
handle
Publisher<Void> handle(DiscordOAuth2Client client, HttpServerRequest req, HttpServerResponse res)
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
-
-