From 17dd784e1f057d30ca17696e7715b479e1ae60ef Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Tue, 13 Feb 2024 18:39:20 +0100 Subject: [PATCH] Created the HTTPMethod.java http entity --- .../java/de/gnmyt/mcdash/http/HTTPMethod.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/main/java/de/gnmyt/mcdash/http/HTTPMethod.java diff --git a/src/main/java/de/gnmyt/mcdash/http/HTTPMethod.java b/src/main/java/de/gnmyt/mcdash/http/HTTPMethod.java new file mode 100644 index 0000000..267ec83 --- /dev/null +++ b/src/main/java/de/gnmyt/mcdash/http/HTTPMethod.java @@ -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 + +}