File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -515,7 +515,15 @@ interface types {
515
515
/// called to signal that the response is complete. If the `outgoing-body`
516
516
/// is dropped without calling `outgoing-body.finalize` , the implementation
517
517
/// should treat the body as corrupted.
518
- finish : static func (this : outgoing-body , trailers : option <trailers >);
518
+ ///
519
+ /// Fails if the body's `outgoing-request` or `outgoing-response` was
520
+ /// constructed with a Content-Length header, and the contents written
521
+ /// to the body (via `write` ) does not match the value given in the
522
+ /// Content-Length.
523
+ finish : static func (
524
+ this : outgoing-body ,
525
+ trailers : option <trailers >
526
+ ) -> result <_ , error-code >;
519
527
}
520
528
521
529
/// Represents a future which may eventaully return an incoming HTTP
You can’t perform that action at this time.
0 commit comments