Sample code for 30+ languages & platforms
Ruby

Example: Rest.AddHeader method

Demonstrates the AddHeader method.

Chilkat Ruby Downloads

Ruby
require 'chilkat'

rest = Chilkat::CkRest.new()

rest.AddHeader("User-Agent","MyApplication/1.0")

# ...
# ...
# ...