http_method/
lib.rs

1//! HTTP method.
2
3/// `GET` method.
4pub const GET: Method = Method {
5    repr: Repr::WellKnown(WellKnown::Get),
6};
7
8/// `POST` method.
9pub const POST: Method = Method {
10    repr: Repr::WellKnown(WellKnown::Post),
11};
12
13/// HTTP method.
14#[derive(Debug, Clone, PartialEq)]
15pub struct Method {
16    repr: Repr,
17}
18
19#[derive(Debug, Clone, PartialEq)]
20enum Repr {
21    WellKnown(WellKnown),
22}
23
24#[derive(Debug, Clone, Copy, PartialEq, Eq)]
25enum WellKnown {
26    // Delete,
27    Get,
28    // Head,
29    // Options,
30    // Patch,
31    Post,
32    // Put,
33    // Trace,
34}