status.rs
SHA-2560f5040cf0817ea9e1bfcf1e0e71c641cabd0e12bb9cbdc2613c426b7dd7192d4
Malecule∅
Evidence
1use std::fmt;
2
3/// Enumeration of HTTP status classes.
4#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)]
5pu …
6:54… de of 1XX.
7 Informational,
8 /// Indicates that a request has succeeded: a status code of 2XX.
9 Success,
10 /// Indicates that further action needs to be taken by the user agent in
11 /// order to fulfill the request: a status code of 3XX.
12 Redirection,
13 /// Intended for cases in which the client seems to have erred: a status
14 /// code of 4XX.
15 ClientError,
16 /// Indicates cases in which the serv …
19:7… / Indicates that the status code is nonstandard and unknown: all other
20 /// status codes.
21 Unknown
⋯4 lines
85:13… tatus {
86 /// The HTTP status code associated with this status.
87 pub code: u16,
88 /// The HTTP reason phrase associated with this status.
89 pub …