-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: send 103 Early Hints responses (#95)
* feat: send 103 Early Hints responses * test: simplify tests * fix: simplify the code and allow easy testing with Caddy * fix: skip early hints test for now - inconsistent behavior in Go 1.19 * various fixes * fix flaky test --------- Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
- Loading branch information
Showing
7 changed files
with
115 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/caddyserver/caddy/v2" | ||
caddycmd "github.com/caddyserver/caddy/v2/cmd" | ||
|
||
"go.uber.org/automaxprocs/maxprocs" | ||
|
||
// plug in Caddy modules here. | ||
_ "github.com/caddyserver/caddy/v2/modules/standard" | ||
_ "github.com/dunglas/vulcain/caddy" | ||
) | ||
|
||
//nolint:gochecknoinits | ||
func init() { | ||
//nolint:errcheck | ||
maxprocs.Set(maxprocs.Logger(caddy.Log().Sugar().Debugf)) | ||
} | ||
|
||
func main() { | ||
caddycmd.Main() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters