Package kos.core

Class Request


  • public class Request
    extends Object
    Methods to read and parse data from the incoming request. Note: As these methods have been mainly created for internal API use, we strongly discourage developers to use these methods as it may change without further notice.
    • Constructor Detail

      • Request

        public Request()
    • Method Detail

      • readParam

        public <T> T readParam​(KosContext kosContext,
                               io.vertx.ext.web.RoutingContext context,
                               String name,
                               Class<T> type)
      • readHeader

        public <T> T readHeader​(KosContext kosContext,
                                io.vertx.ext.web.RoutingContext context,
                                String name,
                                Class<T> type)
      • readBody

        public <T> T readBody​(KosContext kosContext,
                              io.vertx.ext.web.RoutingContext context,
                              String name,
                              Class<T> type)
      • readContext

        public <T> T readContext​(KosContext kosContext,
                                 io.vertx.ext.web.RoutingContext context,
                                 String name,
                                 Class<T> type)