You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/hertz/tutorials/basic-feature/engine.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,11 +32,11 @@ type Hertz struct {
32
32
| WithUnescapePathValues | true | If true, the request path will be escaped automatically (eg. '%2F' -> '/'). If UseRawPath is false (the default), UnescapePathValues is true, because URI().Path() will be used and it is already escaped. To set WithUnescapePathValues to false, you need to set WithUseRawPath to true |
33
33
| WithUseRawPath | false | If true, the original path will be used to match the route |
34
34
| WithHandleMethodNotAllowed | false | If true when the current path cannot match any method, the server will check whether other methods are registered with the route of the current path, and if exist other methods, it will respond "Method Not Allowed" and return the status code 405; if not, it will use the handler of NotFound to handle it |
35
-
| WithDisablePreParseMultipartForm | false | If true, the multipart form will not be preprocessed. The body can be obtained via c.Request.Body() and then can be processed by user |
35
+
| WithDisablePreParseMultipartForm | false | If true, the multipart form will not be preprocessed. The body can be obtained via c.Request.Body() and then can be processed by user |
36
36
| WithStreamBody | false | If true, the body will be handled by stream processing |
37
37
| WithNetwork | "tcp" | Set the network protocol, optional: tcp,udp,unix(unix domain socket) |
38
38
| WithExitWaitTime | 5s | Set the graceful exit time. the Server will stop connection establishment for new requests and set the Connection: Close header for each request after closing. When the set time is reached, Server will to be closed. the Server can be closed early when all connections have been closed |
39
-
| WithTLS | nil | Configuring server tls capabilities, For detailed information, please refer to [TLS](/zh/docs/hertz/tutorials/basic-feature/tls/)|
39
+
| WithTLS | nil | Configuring server tls capabilities, For detailed information, please refer to [TLS](/zh/docs/hertz/tutorials/basic-feature/tls/)|
40
40
| WithListenConfig | nil | Set the listener configuration. Can be used to set whether to allow reuse ports, etc. |
41
41
| WithALPN | false | Whether to enable ALPN |
42
42
| WithTracer |[]interface{}{} | Inject tracer implementation, if not inject Tracer, default: close. |
@@ -49,7 +49,7 @@ type Hertz struct {
49
49
| WithKeepAlive | true | If enabled, use HTTP keepalive |
50
50
| WithAltTransport | network.NewTransporter | Set up the alternate transport |
51
51
| WithH2C | false | Sets whether H2C is enabled |
52
-
| WithReadBufferSize | 4 \* 1024 | Set the read buffer size while limiting the HTTP header size|
52
+
| WithReadBufferSize | 4 \* 1024 | Set the read buffer size |
53
53
| WithRegistry | registry.NoopRegistry, nil | Setup registry configuration, service registration information |
54
54
| WithAutoReloadRender | false, 0 | Set up the automatic reload rendering configuration |
0 commit comments