weavejester / ring-server

51 stars 24 forks source link

Add :context-handler option #3

Open ninjudd opened 11 years ago

ninjudd commented 11 years ago

This option wraps the handler with ring.middleware.context so that it behaves like it is inside a ServletContext. This means it splits :uri and fills in the :context and :path-info fields in request. This option can be used so that 'lein ring server' behaves like a container.

This pull request is dependent on ring-clojure/ring#27.