public static boolean isPostPutPatch ( HttpServerExchange exchange ) { Objects . requireNonNull ( exchange , Required . HTTP_SERVER_EXCHANGE . toString ( ) ) ; return ( Methods . POST ) . equals ( exchange . getRequestMethod ( ) ) || ( Methods . PUT ) . equals ( exchange . getRequestMethod ( ) ) || ( Methods . PATCH ) . equals ( exchange . getRequestMethod ( ) ) ; }
Checks if the request is a POST PUT or PATCH request