Created the HTTPMethod.java http entity
This commit is contained in:
parent
467dac3723
commit
17dd784e1f
38
src/main/java/de/gnmyt/mcdash/http/HTTPMethod.java
Normal file
38
src/main/java/de/gnmyt/mcdash/http/HTTPMethod.java
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
package de.gnmyt.mcdash.http;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* All http methods needed by this plugin
|
||||||
|
*/
|
||||||
|
public enum HTTPMethod {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The 'GET' request method. Used whenever a request wants to retrieve data
|
||||||
|
*/
|
||||||
|
GET,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The 'POST' request method. Used whenever a request wants to change something on the server
|
||||||
|
*/
|
||||||
|
POST,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The 'PUT' request method. Used whenever a request wants to add or upload something
|
||||||
|
*/
|
||||||
|
PUT,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The 'DELETE' request method. Used whenever a request wants to delete a specific resource
|
||||||
|
*/
|
||||||
|
DELETE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The 'PATCH' request method. Used whenever a request wants to apply partial modifications to a resource
|
||||||
|
*/
|
||||||
|
PATCH,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The 'OPTIONS' request method. Used whenever the request wants to describe the communication options for the target resource
|
||||||
|
*/
|
||||||
|
OPTIONS
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user