Skip to content

//readium-shared/org.readium.r2.shared.util.http/HttpRequest/Method

Method

[androidJvm]\ enum Method : Enum<HttpRequest.Method> , Serializable

Supported HTTP methods.

Entries

DELETE [androidJvm]
DELETE
GET [androidJvm]
GET
HEAD [androidJvm]
HEAD
PATCH [androidJvm]
PATCH
POST [androidJvm]
POST
PUT [androidJvm]
PUT

Functions

Name Summary
valueOf [androidJvm]
fun valueOf(value: String): HttpRequest.Method
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.)
values [androidJvm]
fun values(): Array<HttpRequest.Method>
Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Name Summary
name [androidJvm]
val name: String
ordinal [androidJvm]
val ordinal: Int