coap_ex icon indicating copy to clipboard operation
coap_ex copied to clipboard

Plug.Conn.req_headers

Open WilliamTakeshi opened this issue 4 years ago • 0 comments

Hello, first I would like to thank you guys for this lib

I have a question about the Plug.Conn.req_headers. On plug documentation is written

* `req_headers` - the request headers as a list, example: `[{"content-type", "text/plain"}]`.

But on coap_ex, the req_headers keys are atoms instead of strings, there is a reason for this?

Example:

[
  content_format: "application/cbor",
  uri_host: "localhost",
  uri_path: ["broker", "api", "v2", "registry"],
  uri_port: 5683
]

Thanks in advance!

WilliamTakeshi avatar Jan 21 '21 14:01 WilliamTakeshi