Class HttpRequest.RequestMethod (3.21.0)

public static final class HttpRequest.RequestMethod extends StringEnumValue

The HTTP request method.

Inheritance

java.lang.Object > com.google.cloud.StringEnumValue > HttpRequest.RequestMethod

Static Fields

GET

public static final HttpRequest.RequestMethod GET
Field Value
Type Description
HttpRequest.RequestMethod

HEAD

public static final HttpRequest.RequestMethod HEAD
Field Value
Type Description
HttpRequest.RequestMethod

POST

public static final HttpRequest.RequestMethod POST
Field Value
Type Description
HttpRequest.RequestMethod

PUT

public static final HttpRequest.RequestMethod PUT
Field Value
Type Description
HttpRequest.RequestMethod

Static Methods

valueOf(String constant)

public static HttpRequest.RequestMethod valueOf(String constant)

Get the RequestMethod for the given String constant, and allow unrecognized values.

Parameter
Name Description
constant String
Returns
Type Description
HttpRequest.RequestMethod

valueOfStrict(String constant)

public static HttpRequest.RequestMethod valueOfStrict(String constant)

Get the RequestMethod for the given String constant, and throw an exception if the constant is not recognized.

Parameter
Name Description
constant String
Returns
Type Description
HttpRequest.RequestMethod

values()

public static HttpRequest.RequestMethod[] values()

Return the known values for RequestMethod.

Returns
Type Description
RequestMethod[]