Fork me on GitHub
#pedestal
<
2018-09-17
>
deadghost18:09:51

any interceptors to keyify request headers?

deadghost19:09:36

particularly cookies because it's in some-key=some-value; format

deadghost19:09:59

don't want to be reinventing wheels when this almost 100% is already written somewhere

deadghost19:09:40

I looked through the default interceptors stack and don't see any that would apply

deadghost19:09:02

would be great if there's a supplementary list of often used interceptors

ddeaguiar19:09:22

@deadghost you’ll have to write your own interceptor to keyify headers in general but you’ll be interested in the cookies interceptor. https://github.com/pedestal/pedestal/blob/master/service/src/io/pedestal/http/ring_middlewares.clj#L73-L78

ddeaguiar19:09:41

It just wraps the rings cookie middleware

ddeaguiar19:09:16

There are other useful interceptors in the io.pedestal.http/ring_middlewares ns as well. http://pedestal.io/api/pedestal.service/io.pedestal.http.ring-middlewares.html