Skip to content

class URI::Params::Builder
inherits Reference

URI params builder.

Every parameter added is directly written to an IO, where keys and values are properly escaped.

Class methods

.new(io : IO)

View source

Methods

#add(key, value : String?)

Adds a key-value pair to the params being built.

View source

#add(key, values : Array)

Adds all of the given values as key-value pairs to the params being built.

View source