Skip to content

Commit

Permalink
Merge #2381 into netty5
Browse files Browse the repository at this point in the history
  • Loading branch information
violetagg committed Jul 14, 2022
2 parents 9960f5b + 4251a32 commit 38d032b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/asciidoc/http-server.adoc
Expand Up @@ -2,6 +2,7 @@
:examplesdir: ./../../reactor-netty5-examples/src/main/java/reactor/netty/examples/documentation/http/server
:javadoc: https://projectreactor.io/docs/netty/{project-version}/api
:wirelogger: reactor.netty5.http.server.HttpServer
:nettyjavadoc: https://netty.io/5.0/api

[[http-server]]
= HTTP Server
Expand Down Expand Up @@ -305,8 +306,8 @@ By default, `Netty` configures some restrictions for the incoming requests, such
* The maximum length of all headers.
* The maximum length of the content or each chunk.

For more information, see https://netty.io/4.1/api/io/netty/handler/codec/http/HttpRequestDecoder.html[`HttpRequestDecoder`]
and https://netty.io/4.1/api/io/netty/handler/codec/http/HttpServerUpgradeHandler.html[`HttpServerUpgradeHandler`]
For more information, see {nettyjavadoc}/io/netty/handler/codec/http/HttpRequestDecoder.html[`HttpRequestDecoder`]
and {nettyjavadoc}/io/netty/handler/codec/http/HttpServerUpgradeHandler.html[`HttpServerUpgradeHandler`]

By default, the `HTTP` server is configured with the following settings:

Expand Down Expand Up @@ -335,7 +336,7 @@ include::{examplesdir}/requestdecoder/Application.java[lines=18..34]
----
<1> The maximum length of all headers will be `16384`.
When this value is exceeded, a
https://netty.io/4.1/api/io/netty/handler/codec/TooLongFrameException.html[TooLongFrameException]
{nettyjavadoc}/io/netty/handler/codec/TooLongFrameException.html[TooLongFrameException]
is raised.
====

Expand Down Expand Up @@ -386,11 +387,11 @@ include::wire-logger.adoc[]

When you need SSL or TLS, you can apply the configuration shown in the next example.
By default, if `OpenSSL` is available,
https://netty.io/4.1/api/io/netty/handler/ssl/SslProvider.html#OPENSSL[`SslProvider.OPENSSL`]
{nettyjavadoc}/io/netty/handler/ssl/SslProvider.html#OPENSSL[`SslProvider.OPENSSL`]
provider is used as a provider. Otherwise
https://netty.io/4.1/api/io/netty/handler/ssl/SslProvider.html#JDK[`SslProvider.JDK`] is used.
{nettyjavadoc}/io/netty/handler/ssl/SslProvider.html#JDK[`SslProvider.JDK`] is used.
You can switch the provider by using
https://netty.io/4.1/api/io/netty/handler/ssl/SslContextBuilder.html#sslProvider-io.netty.handler.ssl.SslProvider-[`SslContextBuilder`]
{nettyjavadoc}/io/netty/handler/ssl/SslContextBuilder.html#sslProvider-io.netty.handler.ssl.SslProvider-[`SslContextBuilder`]
or by setting `-Dio.netty.handler.ssl.noOpenSsl=true`.

The following example uses `SslContextBuilder`:
Expand Down

0 comments on commit 38d032b

Please sign in to comment.