Skip to content

Add inline parsing #13

Closed
Closed
@vladfaust

Description

Could be used in frameworks with non-object actions, such as @kemalcr.

get "/user/:id" do
  params = Params.parse(env.request, {id: Int32})
  params["id"] # Params is a NamedTuple(id: Int32)
end

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions