W3cubDocs

/Crystal

class HTTP::Params::Builder

Overview

HTTP params builder.

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

Defined in:

http/params.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO)Source

Instance Method Detail

def add(key, value : String?)Source

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

def add(key, values : Array)Source

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

© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/HTTP/Params/Builder.html