We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e186b4f commit 68d1791Copy full SHA for 68d1791
website/content/guide/customization.md
@@ -88,6 +88,23 @@ s := &http.Server{
88
e.Logger.Fatal(e.StartServer(s))
89
```
90
91
+## Custom HTTP/2 Cleartext Server
92
+
93
+`Echo#StartH2CServer()` can be used to run a custom HTTP/2 cleartext server.
94
95
+*Example*
96
97
+```go
98
+import "golang.org/x/net/http2"
99
100
+s := &http2.Server{
101
+ MaxConcurrentStreams: 250,
102
+ MaxReadFrameSize: 1048576,
103
+ IdleTimeout: 10 * time.Second,
104
+}
105
+e.Logger.Fatal(e.StartH2CServer(":1323", s))
106
+```
107
108
## Startup Banner
109
110
`Echo#HideBanner` can be used to hide the startup banner.
0 commit comments