Liking cljdoc? Tell your friends :D

ring-proxy

This project is a fork of tailrecursion's ring-proxy middleware. This project only adds a project.clj to be able to work with our internal libraries.

HTTP proxy ring middleware for Clojure web applications.

Dependency

[com.guaranteedrate/ring-proxy "3.0.0"]

Example

Assuming your application's route handler is defined as routes, you may add a proxied route with something like the following:

(ns your-ns
  (:require [tailrecursion.ring-proxy :refer [wrap-proxy]]))

(def app
  (-> routes
      (wrap-proxy "/remote" "http://some.remote.server/remote")))

License

Copyright © 2013 Alan Dipert and Micha Niskin

Distributed under the Eclipse Public License, the same as Clojure.

Can you improve this documentation? These fine people already did:
jumblerg, Alan Dipert, Bret Young & Micha Niskin
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close