Method: LeanCloud::Client#headers
- Defined in:
- lib/lean_cloud/client.rb
#headers(options = {}) ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/lean_cloud/client.rb', line 24 def headers(={}) { "X-AVOSCloud-Application-Id" => app_id, "X-AVOSCloud-Application-Key" => app_key, "X-AVOSCloud-Master-Key" => master_key, 'Content-Type' => 'application/json', 'User-Agent' => "LeanCloud SDK Ruby / #{LeanCloud::VERSION}" }.merge() end |