org.mashupbots.socko.routes
Matches the query string of org.mashupbots.socko.events.EndPoints in org.mashupbots.socko.events.SockoEvents using field names.
If a match is found, the value is returned. If there are more than one value, on the first value is returned.
For example, to match ?name1=value1, first define your match as an object:
?name1=value1
object MyQueryStringField extends QueryStringName("name1")
Then, when defining your Route:
val r = Routes({ case MyQueryStringField(value) => { assert(value == "value1") ... } })
Matches the query string of org.mashupbots.socko.events.EndPoints in org.mashupbots.socko.events.SockoEvents using field names.
If a match is found, the value is returned. If there are more than one value, on the first value is returned.
For example, to match
?name1=value1
, first define your match as an object:Then, when defining your Route: