~fnux/yggdrasil-go-coap

yggdrasil-go-coap/responsewriter.go -rw-r--r-- 4.4 KiB
953b051b — Arunprabhu Kandasamy 2 years ago
support no-response option (#37)

* support no-response option

OptionID has to be made uint16 in order to support the no-response
option number i.e. 258.
Added Encoding and Decoding message tests for the no-response option.
71303ed8 — Michal Cizmazia 2 years ago
Change Request.Client to ClientConn

- Changed Request.Client from ClientCommander to ClientConn
3638c5d5 — Jozef Kralik 2 years ago
iser interface instead of dereference
5ec6279d — Jozef Kralik 2 years ago
Provide context to Request (#36)

* implement context
* fix dealock when client connection was closed by server
08fd8a5f — Erik Johnston 2 years ago
Fix responding to blockwise requests using Write

When responding to blockwise requests using `ResponseWrite.Write` the
server would use the message ID of the first block message rather than
the last. This meant that clients would fail to handle the response.

This was due to not creating a new response writer when we created a new
request.
4fe6ff7a — Ondrej Tomčík 2 years ago
Merge pull request #19 from go-ocf/fixOfBlockWiseUnexpectedCode

fix of blockwise transfering - proper handle unexpected code, fix of windows client dialup
1d21e9b4 — Jozef Kralik 2 years ago
fix of blockwise transfering - proper handle unexpected code, fix of windows client dialup
3fa5306e — Jozef Kralik 2 years ago
add Write for satisfy io.Writer interface in ResponseWriter

add validation for Payload,ContentFormat of Msg
b39d71af — Jozef Kralik 2 years ago
add New{GET,POST,PUT,DELETE}Request and NewResponse
cf6d606c — Jozef Kralik 2 years ago
add ClientCommander as interface for users
bfbd2fd9 — Jozef Kralik 2 years ago
add method OBSERVE to client
dfd0cb9b — Jozef Kralik 2 years ago
add blockwise: POST, PUT, GET