Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/souenzzo/pathom-pedestal-driver
Use io.pedestal.test/response-for as a com.wsscode.pathom.diplomat.http/driver
https://github.com/souenzzo/pathom-pedestal-driver
Last synced: 1 day ago
JSON representation
Use io.pedestal.test/response-for as a com.wsscode.pathom.diplomat.http/driver
- Host: GitHub
- URL: https://github.com/souenzzo/pathom-pedestal-driver
- Owner: souenzzo
- License: epl-1.0
- Created: 2018-10-30T03:28:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T03:38:59.000Z (about 6 years ago)
- Last Synced: 2024-12-16T09:42:23.833Z (about 1 month ago)
- Language: Clojure
- Homepage: https://github.com/souenzzo/pathom-pedestal-driver
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pathom-pedestal-driver
Use io.pedestal.test/response-for as a com.wsscode.pathom.diplomat.http/driver
## Installation
lein/boot:
```clojure
[pathom-pedestal-driver "0.1.0"]
```tools-deps:
```clojure
pathom-pedestal-driver {:mvn/version "0.1.0"}
```## Usage
```
(:require ...
[pathom-pedestal-driver.core :as pedestal-driver])(def service-fn
(-> {::http/routes routes
::http/type :jetty
::http/port 8080
::http/join? false}
http/default-interceptors
http/dev-interceptors
http/create-server
::http/service-fn))(def parser
(p/parser {::p/plugins [(p/env-plugin {::p.http/driver (pedestal-driver/request-factory service-fn)
...})]}))```
## License
Copyright © 2018 souenzzo
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.