January 2018
Intermediate to advanced
336 pages
7h 56m
English
In the pedestal-play project, the service.clj source file defines two interceptors, about-page and home-page, which are used for the service. Additionally, it uses two HTTP-specific interceptors, body-params (http://pedestal.io/api/pedestal.service/io.pedestal.http.body-params.html#var-body-params) and html-body (http://pedestal.io/api/pedestal.service/io.pedestal.http.html#var-html-body), which are provided out of the box by the pedestal.service module. The pedestal-play.service namespace snippet is shown here with the interceptor declarations:
(ns pedestal-play.service (:require [io.pedestal.http :as http] [io.pedestal.http.route :as route] [io.pedestal.http.body-params :as body-params] [ring.util.response ...
Read now
Unlock full access