enum

Fossil::MethodsEnum

Inherits Enum < Comparable < Value < Object

Possible HTTP::Request methods.

Annotations of the same names are used for identifying endpoint functions. This annotations are eximined on having unnamed parameter of type Fossil::Router.

@[GET(root / "route_a" / "@param0:string")]
def get_route_a(@[Fossil::Param::Path(name="param0")] somestr : String)
  ...

Constants

GET = 0
POST = 1
PUT = 2
HEAD = 3
DELETE = 4
PATCH = 5
OPTIONS = 6

Instance methods

delete?

Returns true if this enum value equals DELETE

Source
get?

Returns true if this enum value equals GET

Source
head?

Returns true if this enum value equals HEAD

Source
options?

Returns true if this enum value equals OPTIONS

Source
patch?

Returns true if this enum value equals PATCH

Source
post?

Returns true if this enum value equals POST

Source
put?

Returns true if this enum value equals PUT

Source