juxt

apa512 2019-11-19T08:33:43.042600Z

(def my-vhosts-model
  (bidi.vhosts/vhosts-model ["<https://example.org:8443>"
                             ["/index.html" :index]
                             ["/login" :login]]

                            ["<https://blog.example.org>"
                             ["/posts.html" :posts]]))

(comment
 (bidi.vhosts/uri-info my-vhosts-model :index))

apa512 2019-11-19T08:33:59.042900Z

i'm trying vhosts but can't get it working at all

apa512 2019-11-19T08:35:14.043900Z

:index gives nil and :posts raises exception

apa512 2019-11-19T08:35:19.044100Z

Execution error (ExceptionInfo) at bidi.bidi/eval5731$fn (bidi.cljc:125).
If a PatternSegment is represented by a vector, the second element
                               must be the key associated with the pattern: [
{:scheme :https, :host "<http://example.org:8443|example.org:8443>"}]

apa512 2019-11-19T08:36:01.044700Z

any reason why this wouldn't work with the latest yada?

dominicm 2019-11-19T21:40:51.045600Z

Uri info requires a request