Add doc clarifying that there is no blackd client (#859)
Resolves #854 The first sentence of this is pretty uncontroversial. (Though I wasn't sure exactly where in the text to put it.) I thought it would also be nice to show the `curl` test with a tiny statement that actually reformats.
This commit is contained in:
parent
b85c345dbc
commit
a4399f3054
@ -844,6 +844,14 @@ Options:
|
|||||||
-h, --help Show this message and exit.
|
-h, --help Show this message and exit.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
There is no official blackd client tool (yet!). You can test that blackd is
|
||||||
|
working using `curl`:
|
||||||
|
|
||||||
|
```
|
||||||
|
blackd --bind-port 9090 & # or let blackd choose a port
|
||||||
|
curl -s -XPOST "localhost:9090" -d "print('valid')"
|
||||||
|
```
|
||||||
|
|
||||||
### Protocol
|
### Protocol
|
||||||
|
|
||||||
`blackd` only accepts `POST` requests at the `/` path. The body of the request
|
`blackd` only accepts `POST` requests at the `/` path. The body of the request
|
||||||
|
Loading…
Reference in New Issue
Block a user