Skip to content

Commit

Permalink
test ReadHeaderTimeout: time.Minute
Browse files Browse the repository at this point in the history
  • Loading branch information
bddjr committed Dec 4, 2024
1 parent d9e7743 commit dcf5da9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ func main() {
srv = hlfhr.New(&http.Server{
Addr: ":5678",
Handler: http.HandlerFunc(httpResponseHandle),
ReadHeaderTimeout: 5 * time.Second,
IdleTimeout: 5 * time.Second,
ReadHeaderTimeout: time.Minute,
})
// Then just use it like http.Server .

Expand Down

0 comments on commit dcf5da9

Please sign in to comment.