Skip to content

Commit

Permalink
Added docs for disabling HTTP/2
Browse files Browse the repository at this point in the history
  • Loading branch information
tomakehurst committed Apr 3, 2024
1 parent 3e2a30c commit 328b4a4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions _docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ WireMock uses the trust store for three purposes:
3. As a proxy, WireMock will trust a target server if it presents a public
certificate in this trust store


## HTTP/2 configuration

HTTP/2 can be disabled separately for plain text (HTTP) and TLS (HTTPS):

```java
// Disable HTTP/2 over HTTP
.http2PlainDisabled(true);

// Disable HTTP/2 over HTTPS
.http2TlsDisabled(true);
```


## Proxy settings

```java
Expand Down
4 changes: 4 additions & 0 deletions _docs/standalone/java-jar.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ The following can optionally be specified on the command line:

`--disable-http`: Disable the HTTP listener, option available only if HTTPS is enabled.

`--disable-http2-plain`: Disable HTTP/2 over plain text (HTTP).

`--disable-http2-tls`: Disable HTTP/2 over TLS (HTTPS).

`--https-port`: If specified, enables HTTPS on the supplied port.
Note: When you specify this parameter, WireMock will still, additionally, bind to an HTTP port (8080 by default). So when running multiple WireMock servers you will also need to specify the `--port` parameter in order to avoid conflicts.

Expand Down

0 comments on commit 328b4a4

Please sign in to comment.