Created the HTTPMethod.java http entity

This commit is contained in:
Mathias Wagner 2024-02-13 18:39:20 +01:00
parent 467dac3723
commit 17dd784e1f
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View 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
}