| author | |
| committer | |
| log | 511acc167f4cea39cb780ad93a36dfd0e64e4417 |
| tree | c8b7912867c8531027420769478343250ead525c |
| parent | ddb754ff2fd29298dd1b6c9f4a8619ce4f960e36 |
I don't like this mechanism in general, and it is unused by the standard
library.1 files changed, 0 insertions(+), 4 deletions(-)
lib/std/http.zig-4| ... | ... | @@ -42,10 +42,6 @@ pub const Method = enum(u64) { |
| 42 | 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 | 45 | /// Returns true if a request of this method is allowed to have a body |
| 50 | 46 | /// Actual behavior from servers may vary and should still be checked |
| 51 | 47 | pub fn requestHasBody(self: Method) bool { |