Skip to content

Commit aaa0041

Browse files
committed
Update docs that reference old content-length behaviour
We're now more aggressive with this: we attempt to ensure framing is correct at all times (hard to do 100% right now, but that's the general goal - we will actively override clearly wrong values).
1 parent 0e01ebd commit aaa0041

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

src/rules/requests/request-handler-definitions.ts

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ export interface CallbackRequestResult {
9292
* in your request headers.
9393
*
9494
* If this is set, the Content-Length header will be automatically updated
95-
* accordingly to match, unless you also provide a `headers` value that
96-
* includes a Content-Length header, in which case that will take used
97-
* as-is.
95+
* or added accordingly, if required.
9896
*
9997
* You should only return one body field: either `body`, `rawBody` or
10098
* `json`.
@@ -106,9 +104,7 @@ export interface CallbackRequestResult {
106104
* as is, and is not automatically encoded.
107105
*
108106
* If this is set, the Content-Length header will be automatically updated
109-
* accordingly to match, unless you also provide a `headers` value that
110-
* includes a Content-Length header, in which case that will take used
111-
* as-is.
107+
* or added accordingly, if required.
112108
*
113109
* You should only return one body field: either `body`, `rawBody` or
114110
* `json`.
@@ -121,9 +117,7 @@ export interface CallbackRequestResult {
121117
* the Content-Encoding defined in your request headers.
122118
*
123119
* If this is set, the Content-Length header will be automatically updated
124-
* accordingly to match, unless you also provide a `headers` value that
125-
* includes a Content-Length header, in which case that will take used
126-
* as-is.
120+
* or added accordingly, if required.
127121
*
128122
* You should only return one body field: either `body`, `rawBody` or
129123
* `json`.
@@ -195,9 +189,7 @@ export interface CallbackResponseMessageResult {
195189
* response headers.
196190
*
197191
* If this is set, the Content-Length header will be automatically updated
198-
* accordingly to match, unless you also provide a `headers` value that
199-
* includes a Content-Length header, in which case that will take used
200-
* as-is.
192+
* or added accordingly, if required.
201193
*
202194
* Defaults to empty.
203195
*
@@ -211,9 +203,7 @@ export interface CallbackResponseMessageResult {
211203
* as is, and is not automatically encoded.
212204
*
213205
* If this is set, the Content-Length header will be automatically updated
214-
* accordingly to match, unless you also provide a `headers` value that
215-
* includes a Content-Length header, in which case that will take used
216-
* as-is.
206+
* or added accordingly, if required.
217207
*
218208
* You should only return one body field: either `body`, `rawBody` or
219209
* `json`.
@@ -226,9 +216,7 @@ export interface CallbackResponseMessageResult {
226216
* Content-Encoding defined in your response headers.
227217
*
228218
* If this is set, the Content-Length header will be automatically updated
229-
* accordingly to match, unless you also provide a `headers` value that
230-
* includes a Content-Length header, in which case that will take used
231-
* as-is.
219+
* or added accordingly, if required.
232220
*
233221
* You should only return one body field: either `body`, `rawBody` or
234222
* `json`.

0 commit comments

Comments
 (0)