Lyricdev
GitHub

enum Method

pub enum Method :: [Equatable, Debug]

Conforms to Equatable, Debug, Display.

A request's method; Other for a token beyond the common ones.

Variants

Get
Head
Post
Put
Delete
Patch
Options
Other(string)

Methods

pub static fn of(token: string): Method

Returns the method of a token as it stands on the wire (GET), Other for one beyond the known ones.

fn show(): string