We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d7b6e4 commit 756fab4Copy full SHA for 756fab4
src/request.ts
@@ -954,9 +954,9 @@ export class Request extends Macroable {
954
}
955
956
/**
957
- * toJSON copy of the request
+ * Serializes request to JSON format
958
*/
959
- toJSON() {
+ serialize() {
960
return {
961
id: this.id(),
962
url: this.url(),
@@ -972,4 +972,11 @@ export class Request extends Macroable {
972
subdomains: this.ctx?.subdomains || {},
973
974
975
+
976
+ /**
977
+ * toJSON copy of the request
978
+ */
979
+ toJSON() {
980
+ return this.serialize()
981
+ }
982
0 commit comments