xmidt-org / wrp-go

go implementation of the Web Routing Protocol
Apache License 2.0
4 stars 7 forks source link

Add HTTP Headers for the metadata portion of the object #26

Closed schmidtw closed 5 years ago

schmidtw commented 5 years ago

There are a few pieces of metadata that we'd like to provide via the HTTP expression of the WRP message. It seems reasonable to translate the metadata something like this:

wrp.metadata.hw-model = Example

Into:

X-Xmidt-Metadata: hw-model=Example
X-Xmidt-Metadata: hw-serial-number=SDFKDFH
X-Xmidt-Metadata: tags/example_tag/exires=1234
schmidtw commented 5 years ago

It looks like this is the area to add this functionality to: https://github.com/xmidt-org/wrp-go/blob/master/wrp/wrphttp/headers.go#L215