pedestal

asilverman 2019-05-13T18:32:17.086500Z

#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 Lane 2019-05-13T20:47:00.087400Z

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

asilverman 2019-05-13T20:52:32.088Z

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

Joe Lane 2019-05-13T21:01:39.088600Z

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

2019-05-13T21:08:47.089700Z

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).