pub fn readerExpectContinue(request: *Request, buffer: []u8) ExpectContinueError!*Reader request: *Requestbuffer: []u8577
578
579
580
581
582 pub fn readerExpectContinue(request: *Request, buffer: []u8) ExpectContinueError!*Reader {
const flush = request.head.expect != null;
try writeExpectContinue(request);
if (flush) try request.server.out.flush();
return readerExpectNone(request, buffer);
}
In the case that the request contains "expect: 100-continue", this function writes the continuation header, which means it can fail with a write error. After sending the continuation header, it sets the request's expect field to
null.Asserts that this function is only called once.
See
readerExpectNonefor an infallible alternative that cannot write to the server output stream.