You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+4
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,9 @@ Possible members of a request object:
72
72
`false`.
73
73
-`response_body` - String to send as the response body from the origin. Defaults to
74
74
the test identifier.
75
+
-`interim_responses` - An array of interim responses to send before the final response. Each item can be either:
76
+
-`[status_code]` - Just a status code (e.g., `[102]`)
77
+
-`[status_code, headers_array]` - Status code and headers, where headers_array is an array of `[header_name, header_value]` pairs
75
78
-`response_pause` - Integer number of seconds for the server to pause before generating a response.
76
79
-`check_body` - Whether to check the response body. Default `true`.
77
80
-`expected_type` - One of:
@@ -98,6 +101,7 @@ Possible members of a request object:
98
101
-`header_name_string` representing headers to check that the response on the client does not include.
99
102
-`[header_name_string, header_value_string]`: headers to check that the response is either missing, or if they're present, that they do _not_ contain the given value string (evaluated against the whole header value).
100
103
-`expected_response_text` - A string to check the response body against on the client.
104
+
-`expected_interim_responses` - An array of interim responses expected to be received by the client. Format is the same as `interim_responses`.
101
105
-`setup` - Boolean to indicate whether this is a setup request; failures don't mean the actual test failed.
102
106
-`setup_tests` - Array of values that indicate whether the specified check is part of setup; failures don't mean the actual test failed. One of: `["expected_type", "expected_method", "expected_status", "expected_response_headers", "expected_response_text", "expected_request_headers"]`
0 commit comments