Luukdegram / apple_pie

Basic HTTP server implementation in Zig
MIT License
163 stars 21 forks source link

Send status 100 "Continue" #36

Open Luukdegram opened 3 years ago

Luukdegram commented 3 years ago

When a client requests with a header Expect: 100-continue, we must send a status 100 continue. We can send this immediately after verifying the request headers and MUST send this before sending the 'regular' response.

As we're currently relying on buffered writers for performance benefits, the 100 status code must be flushed immediately to the client, so they can send their body (if they haven't already).

Avokadoen commented 3 years ago

Relevant specification: