Skip to content

Commit

Permalink
Update readme.md change parsedResponse to parseResponse (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
markpaine authored Jan 23, 2025
1 parent 5e6b7fe commit 3ed0e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ try std.testing.expectEqual(@as(i64, 9000), json.Object.get("over").?.Integer);
For more advanced validation, use the `parseResponse` function to return a structure representing the parsed response:

```zig
const res = try web_test.parsedResponse();
const res = try web_test.parseResponse();
try std.testing.expectEqual(@as(u16, 200), res.status);
// use res.body for a []const u8
// use res.headers for a std.StringHashMap([]const u8)
Expand Down

0 comments on commit 3ed0e57

Please sign in to comment.