org.mashupbots.socko.routes
Matches HTTP requests with the same host segment pattern.
For example, to match server1.sockoweb.com, use:
server1.sockoweb.com
val r = Routes({ case HostSegments(server :: "sockoweb" :: "com" :: Nil) => { // server will be set to server1 ... } })
Matches HTTP requests with the same host segment pattern.
For example, to match
server1.sockoweb.com, use:val r = Routes({ case HostSegments(server :: "sockoweb" :: "com" :: Nil) => { // server will be set to server1 ... } })