Package 

Class HttpAllowedMethodsPlugin

  • All Implemented Interfaces:

    
    public class HttpAllowedMethodsPlugin
    extends Plugin<Void>
                        

    Plugin adding automatically the Access-Control-Allow-Methods when sending an OPTIONS request to a valid path.

    The Access-Control-Allow-Methods response header specifies one or more methods allowed when accessing a resource in response to a preflight request.

    e.g.: Access-Control-Allow-Methods: POST, DELETE

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit onStart(JavalinConfig config) Called when the plugin is applied to the Javalin instance.
      • Methods inherited from class io.javalin.plugin.Plugin

        name, onInitialize, priority, repeatable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpAllowedMethodsPlugin

        HttpAllowedMethodsPlugin()