Fork me on GitHub
#pedestal
<
2017-03-31
>
jimmy06:03:53

hi guys, in pedestal, sometimes they use ::server in service map sometimes ::http. What is the different ?

rauh06:03:10

@nxqd I think they're just differently aliased. Check out the ns :requires

jimmy06:03:15

oh my, it's my bad. THanks !

mtnygard13:03:36

@nxqd The ::server convention came from the early days of Pedestal and Clojure, when we didn't have very strong conventions about namespace aliases. More "modern" Clojure usage says you should use the last part of the namespace as the alias, so we've changed the templates to conform with that convention. That gives us ::http as the alias for io.pedestal.http.

jimmy16:03:01

@mtnygard great answer as always