org.mashupbots.socko.routes
Matches the query string of org.mashupbots.socko.events.EndPoints in org.mashupbots.socko.events.SockoEvents using regular expressions
For example, to match ?name1=value1, first define your regular expression as an object:
?name1=value1
object MyQueryStringRegex extends QueryStringRegex("""name1=([a-z0-9]+)""".r)
Then, when defining your Route:
val r = Routes({ case MyQueryStringRegex(m) => { assert(m.group(1) == "value1") ... } })
Matches the query string of org.mashupbots.socko.events.EndPoints in org.mashupbots.socko.events.SockoEvents using regular expressions
For example, to match
?name1=value1
, first define your regular expression as an object:Then, when defining your Route: