Class: Transport::HTTP::Formatter::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/transport/http/formatter.rb

Overview

Request formatter.

Instance Method Summary collapse

Constructor Details

#initialize(uri, request) ⇒ Request

Returns a new instance of Request.



13
14
15
# File 'lib/transport/http/formatter.rb', line 13

def initialize(uri, request)
  @uri, @request = uri, request
end

Instance Method Details

#messageObject



17
18
19
20
# File 'lib/transport/http/formatter.rb', line 17

def message
  "transport to #{@uri.host} #{@uri.port}\n" +
    request
end