mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 14:55:25 +00:00
std.http: remove format() method of Method
I don't like this mechanism in general, and it is unused by the standard library.
This commit is contained in:
parent
ddb754ff2f
commit
511acc167f
@ -42,10 +42,6 @@ pub const Method = enum(u64) {
|
||||
try w.writeAll(str);
|
||||
}
|
||||
|
||||
pub fn format(value: Method, comptime _: []const u8, _: std.fmt.FormatOptions, writer: anytype) @TypeOf(writer).Error!void {
|
||||
return try value.write(writer);
|
||||
}
|
||||
|
||||
/// Returns true if a request of this method is allowed to have a body
|
||||
/// Actual behavior from servers may vary and should still be checked
|
||||
pub fn requestHasBody(self: Method) bool {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user