| author | |
| committer | |
| log | a4957630082ff3a926f0564148b443c8703cc2f8 |
| tree | 5cb9d3dd67c3064e6b0c9fe054bd1d09fc495b91 |
| parent | 5b8822b0ce95061479c8cd4fc1ed555defa64a14 |
| signature |
2 files changed, 6 insertions(+), 0 deletions(-)
http.zig+2| ... | ... | @@ -90,6 +90,8 @@ pub const Status = enum(u10) { |
| 90 | 90 | |
| 91 | 91 | pub fn phrase(self: Status) []const u8 { |
| 92 | 92 | return switch (self) { |
| 93 | .invalid => unreachable, | |
| 94 | ||
| 93 | 95 | // 1xx statuses |
| 94 | 96 | .@"continue" => "Continue", |
| 95 | 97 | .switching_protocols => "Switching Protocols", |
test.zig+4| ... | ... | @@ -13,6 +13,10 @@ test { |
| 13 | 13 | try req.writeUA(); |
| 14 | 14 | try req.send(); |
| 15 | 15 | } |
| 16 | test { | |
| 17 | _ = &http.Status.phrase; | |
| 18 | _ = &http.Status.digits; | |
| 19 | } | |
| 16 | 20 | |
| 17 | 21 | // zig fmt: off |
| 18 | 22 | test { try httpbinMethod(.http, .GET); } |