The code below runs a small HTTP handler not through a server, but directly via httptest. The handler has an early return for a canceled context and a separate branch for a normal request. You need to determine the exact output of the program to stdout.
stdout.defer, io.Copy, Close, and how ResponseRecorder is formed.go run .
Body cleanup was performed in both branches of the handler and which HTTP statuses were recorded.1.24go run .499 when the context is canceled, or 204 after reading the body and cleaning up the requestClick a line and write what it prints. Explanation is optional.