Fork me on GitHub
#pedestal
<
2019-05-13
>
asilverman18:05:17

#pedestal - hey team, has anyone experimented with clojure spec on the http headers and pedestal? I’m looking to verify specific headers were set in the request. Any help is welcome!

Joe Lane20:05:00

@ariel.silverman seems like you could make an interceptor which terminates the interceptor chain if the headers don’t conform.

asilverman20:05:32

yeah that’s what i’ve set up to do, however I was hoping the framework had an opinion about this

Joe Lane21:05:39

I don’t think pedestal is a framework 🙂 I like that its just a library. Vase may hold more opinions like this though.

ddeaguiar21:05:47

agree with @lanejo01 re: framework vs library. Creating your own interceptor is the way to go. Vase does have more opinions but not involve spec and headers (that I recall anyway).