Enum HttpMethods
- All Implemented Interfaces:
Serializable
,Comparable<HttpMethods>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:08.910Z")
@Stability(Stable)
public enum HttpMethods
extends Enum<HttpMethods>
All http request methods.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe DELETE method deletes the specified resource.The GET method requests a representation of the specified resource.The HEAD method asks for a response identical to that of a GET request, but without the response body.The POST method is used to submit an entity to the specified resource, often causing a change in state or side effects on the server.The PUT method replaces all current representations of the target resource with the request payload. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpMethods
Returns the enum constant of this type with the specified name.static HttpMethods[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GET
The GET method requests a representation of the specified resource. -
PUT
The PUT method replaces all current representations of the target resource with the request payload. -
HEAD
The HEAD method asks for a response identical to that of a GET request, but without the response body. -
POST
The POST method is used to submit an entity to the specified resource, often causing a change in state or side effects on the server. -
DELETE
The DELETE method deletes the specified resource.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-