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 a DiscordOAuth2Server after a login process 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 user
      req - a reactor-netty HTTP request accessors
      res - a reactor-netty HTTP response accessors
      Returns:
      the response sent to the user, typically derived from one of the send* methods in HttpServerResponse