Module: Rapuncel::Adapters::NetHttpAdapter

Extended by:
ActiveSupport::Memoizable
Included in:
Client
Defined in:
lib/rapuncel/adapters/net_http_adapter.rb

Defined Under Namespace

Classes: HttpResponse

Instance Method Summary collapse

Instance Method Details

#send_method_call(str) ⇒ Object



27
28
29
30
31
# File 'lib/rapuncel/adapters/net_http_adapter.rb', line 27

def send_method_call str
  req = Net::HTTP.new connection.host, connection.port

  HttpResponse.new req.post(connection.path, str, connection.headers.stringify_keys)
end