swindon-rs / swindon

An HTTP edge (frontend) server with smart websockets support
Apache License 2.0
101 stars 9 forks source link

Implement custom headers #59

Open vmorkovyn opened 6 years ago

vmorkovyn commented 6 years ago

Need to know, from which frontend received request by websocket call. I think, it would be great, if we have opportunity to mark routes in swindon config by label and then get label from header in each request.

tailhook commented 6 years ago

Any reason why extra-headers doesn't work?

popravich commented 6 years ago

extra-headers only work for static files. I guess we can make this setting common to all handlers. Your thoughts?

tailhook commented 6 years ago

Yes. Just be careful not to replace content-length or transfer-encoding headers.