| ... | @@ -42,10 +42,6 @@ pub const Method = enum(u64) { | ... | @@ -42,10 +42,6 @@ pub const Method = enum(u64) { |
| 42 | try w.writeAll(str); | 42 | try w.writeAll(str); |
| 43 | } | 43 | } |
| 44 | | 44 | |
| 45 | pub fn format(value: Method, comptime _: []const u8, _: std.fmt.FormatOptions, writer: anytype) @TypeOf(writer).Error!void { | | |
| 46 | return try value.write(writer); | | |
| 47 | } | | |
| 48 | | | |
| 49 | /// Returns true if a request of this method is allowed to have a body | 45 | /// Returns true if a request of this method is allowed to have a body |
| 50 | /// Actual behavior from servers may vary and should still be checked | 46 | /// Actual behavior from servers may vary and should still be checked |
| 51 | pub fn requestHasBody(self: Method) bool { | 47 | pub fn requestHasBody(self: Method) bool { |