shamblett / coap

A Coap package for dart
Other
16 stars 13 forks source link

feat: only skip host and port options if non-default #158

Closed JKRhb closed 1 year ago

JKRhb commented 1 year ago

Reading through the RFC, I noticed that the skipping of the Uri-Host and Uri-Port options is not necessary if their values are not the default. Including them as proposed in this PR makes it easier to determine where a request was sent to, as illustrated in the following Wireshark screenshot:

grafik

(This PR depends on #157 and should only be merged afterwards.)

shamblett commented 1 year ago

If your happy this is complete I'll merge it