Merge branch 'master' into feature/cancellable_future

This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-22 18:51:47 +02:00
commit bf834a92c8
3 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,5 @@
![](branding/logo.png)
doap
====
@ -7,9 +9,25 @@ doap
## Usage
TODO: Add docs
Documentation is available [here](https://doap.dpldocs.info/).
### Making a request
```
CoapClient client = new CoapClient("coap.me", 5683);
CoapRequestFuture future = client.newRequestBuilder()
.payload(cast(ubyte[])"Hello this is Tristan!")
.token([69])
.post();
writeln("Future start");
CoapPacket response = future.get();
writeln("Future done");
writeln("Got response: ", response);
client.close();
```
## License

BIN
branding/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
branding/logo.xcf Normal file

Binary file not shown.