Repository URL to install this package:
|
Version:
0.1.1.1 ▾
|
module HTTP
module Protocol
class Request
include Message
extend Forwardable
def self.build(request_line)
Builder.(request_line)
end
def_delegators :headers, :accept, :accept_charset
attr_reader :action
attr_reader :path
def initialize(action, path)
@action = action
@path = path
end
def headers
@headers ||= Headers.build
end
def request_line
"#{action} #{path} HTTP/1.1"
end
alias_method :first_line, :request_line
end
end
end