Skip to content

Commit f7b9796

Browse files
committed
remove is_redirect
1 parent 092cc5a commit f7b9796

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

text/0022-response-context.md

-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Adding it as part of the `Contexts`, we get a lot for free such as retained arbi
4747
"content-type": "text/html"
4848
},
4949
"status_code": 500,
50-
"is_redirect": false,
5150
"body_size": 1000,
5251
"arbitrary_field": "arbitrary" // arbitrary and retained fields for backwards compatibility when adding new fields
5352
}
@@ -59,7 +58,6 @@ Adding it as part of the `Contexts`, we get a lot for free such as retained arbi
5958
* `cookies`: Can be given unparsed as `String`, as `Dictionary`, or as a `List of Tuples`.
6059
* `headers`: A `Dictionary` of submitted headers, this requires a special treatment in the data scrubbing rules.
6160
* `status_code`: The HTTP status code, `Integer`.
62-
* `is_redirect`: A `Boolean` indicating if the response was a redirect.
6361
* `body_size`: A `Number` (absolute/positive) indicating the size of the response body in bytes.
6462

6563
The `url`, `method`, `query_string`, `fragment`, `env` fields are not part of the `Response` interface and they should be set under the `Request` field, even if inferred from the HTTP response in case you don't have control over the HTTP Request object.

0 commit comments

Comments
 (0)