Method: Airplay::Connection#post

Defined in:
lib/airplay/connection.rb

#post(resource, body = "", headers = {}) ⇒ Object

Public: Executes a POST to a resource

resource - The resource on the currently active Device body - The body of the action headers - Optional headers

Returns a response object



47
48
49
# File 'lib/airplay/connection.rb', line 47

def post(resource, body = "", headers = {})
  prepare_request(:post, resource, body, headers)
end