| ... | ... | @@ -6,13 +6,13 @@ const std = @import("std.zig"); |
| 6 | 6 | const testing = std.testing; |
| 7 | 7 | |
| 8 | 8 | scheme: []const u8, |
| 9 | | user: ?[]const u8, |
| 10 | | password: ?[]const u8, |
| 11 | | host: ?[]const u8, |
| 12 | | port: ?u16, |
| 9 | user: ?[]const u8 = null, |
| 10 | password: ?[]const u8 = null, |
| 11 | host: ?[]const u8 = null, |
| 12 | port: ?u16 = null, |
| 13 | 13 | path: []const u8, |
| 14 | | query: ?[]const u8, |
| 15 | | fragment: ?[]const u8, |
| 14 | query: ?[]const u8 = null, |
| 15 | fragment: ?[]const u8 = null, |
| 16 | 16 | |
| 17 | 17 | /// Applies URI encoding and replaces all reserved characters with their respective %XX code. |
| 18 | 18 | pub fn escapeString(allocator: std.mem.Allocator, input: []const u8) error{OutOfMemory}![]u8 { |