Class FormParamsSupport

  • All Implemented Interfaces:
    Handler, Service, BiConsumer<ServerRequest,​ServerResponse>

    @Deprecated(since="2.0.2")
    public class FormParamsSupport
    extends Object
    implements Service, Handler
    Deprecated.
    Provides support for form parameters in requests, adding a reader for URL-encoded text (if the request's media type so indicates) and also adding a reader for FormParams.

    Developers will typically add this support to routing:

    
     Routing.builder()
            .register(FormParamSupport.create())
            . ... // any other handlers
     

    When responding to a request, the developer can use

    
         request.content().as(FormParams.class).thenApply(fp -> ...)
     
    and use all the methods defined on FormParams (which extends Parameters).