GoldenGateBindings / com.fitbit.goldengate.bindings.coap.data / Method

Method

enum class Method

Supported Coap methods. These are analogous to HTTP methods of the same names.

Enum Values

GET

Retrieve a resource. MUST not set an OutgoingBody that is not an instance of EmptyOutgoingBody

POST

A non-idempotent request to process the data in the request body.

PUT

An idempotent request to process the data in the request body.

DELETE

Delete a resource. MUST not set an OutgoingBody that is not an instance of EmptyOutgoingBody

Properties

value

val value: Byte

the byte value corresponding to this method from the CoAP Specification (RFC 7252)

Companion Object Functions

fromValue

fun fromValue(value: Byte): Method

Create Method from given value