Skip to content

Commit 3e18153

Browse files
[Workers] response revision (cloudflare#3201)
* [Workers] response revision * status code change
1 parent 6d8a72e commit 3e18153

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

products/workers/src/content/runtime-apis/response.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ Valid options for the `options` object include:
3737
- The status code for the response, such as `200`.
3838

3939
- `statusText` <Type>string</Type>
40-
- The status message associated with the status code, like, `OK`.
40+
- The status message associated with the status code, such as, `OK`.
4141

4242
- `headers` <TypeLink href="/runtime-apis/request#parameters">Headers</TypeLink> | <TypeLink href="https://developer.mozilla.org/en-US/docs/Web/API/ByteString">ByteString</TypeLink>
43-
- Any headers to add to your response that are contained within a [`Headers`](/runtime-apis/request#parameters) object or object literal of [`ByteString`](https://developer.mozilla.org/en-US/docs/Web/API/ByteString) key/value pairs.
43+
- Any headers to add to your response that are contained within a [`Headers`](/runtime-apis/request#parameters) object or object literal of [`ByteString`](https://developer.mozilla.org/en-US/docs/Web/API/ByteString) key-value pairs.
4444

4545
</Definitions>
4646

@@ -57,7 +57,7 @@ Valid options for the `options` object include:
5757
- `headers` <TypeLink href="/runtime-apis/request#parameters">Headers</TypeLink>
5858
- The headers for the response.
5959
- `ok` <Type>boolean</Type>
60-
- A boolean indicating if the response was successful (status in the range 200-299).
60+
- A boolean indicating if the response was successful (status in the range `200`-`299`).
6161
- `redirected` <Type>boolean</Type>
6262
- A boolean indicating if the response is the result of a redirect. If so, its URL list has more than one entry.
6363
- `status` <Type>int</Type>
@@ -103,7 +103,7 @@ Valid options for the `options` object include:
103103

104104
- <Code>json()</Code> <TypeLink href="https://developer.mozilla.org/en-US/docs/Web/">Promise{`<JSON>`}</TypeLink>
105105

106-
- Takes a [`Response`](#response) stream, reads it to completion, and returns a promise that resolves with the result of parsing the body text as [`JSON`](https://developer.mozilla.org/en-US/docs/Web/)
106+
- Takes a [`Response`](#response) stream, reads it to completion, and returns a promise that resolves with the result of parsing the body text as [`JSON`](https://developer.mozilla.org/en-US/docs/Web/).
107107

108108
- <Code>text()</Code> <TypeLink href="https://developer.mozilla.org/en-US/docs/Web/API/USVString">Promise{`<USVString>`}</TypeLink>
109109

@@ -113,7 +113,7 @@ Valid options for the `options` object include:
113113

114114
--------------------------------
115115

116-
## Additional information
116+
## Related resources
117117

118118
- [Examples: Modify response](/examples/modify-response)
119119
- [Examples: Conditional response](/examples/conditional-response)

0 commit comments

Comments
 (0)