View Source Solicit.Plugs.Validation.QueryParams (solicit v1.3.3)

Check to make sure that if a query parameter is provided that it has a value

  • /api?test=1&foo=abc123
  • /api?test=&foo= would be strip out the empty query params and be equiv to /api
  • /api?test=&foo=123 would be strip out the empty query params and be equiv to /api?foo=123

Summary

Functions

@spec call(
  Plug.Conn.t(),
  keyword()
) :: Plug.Conn.t()
@spec init(keyword()) :: keyword()