Skip to content

Commit 30c5c5c

Browse files
committed
documented content length arguments in standalone server
1 parent 0a0875c commit 30c5c5c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

moco-doc/ReleaseNotes.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Release
22

3+
## CLI
4+
* add `--content-length` for max request content length in standalone server
5+
36
## JUnit 5
47
* HTTP and HTTPS with JSON configuration from file/class path
58

moco-doc/cmd.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ If you don't want see too many logs, you could make the server quiet with `-q` o
117117
java -jar moco-runner-<version>-standalone.jar http -p 12306 -c foo.json -q
118118
```
119119

120+
## Max Content Length
121+
Max content length for a single request is set by default, but it is not enough for some case. You can set your own content length with content-length arguments.
122+
```shell
123+
java -jar moco-runner-<version>-standalone.jar http -p 12306 -c foo.json --content-length 2097152
124+
```
125+
120126
## Version
121127

122128
You can query Moco version by the following command:
@@ -155,4 +161,4 @@ Then you can use the shutdown port to shutdown the running Moco instance.
155161

156162
```shell
157163
java -jar moco-runner-<version>-standalone.jar shutdown -s 9527
158-
```
164+
```

0 commit comments

Comments
 (0)