Class: Hanami::Action::Request

Inherits:
Rack::Request
  • Object
show all
Defined in:
lib/hanami/action/request.rb

Overview

An HTTP request based on top of Rack::Request. This guarantees backwards compatibility with with Rack.

Instance Method Summary collapse

Instance Method Details

#[]Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)

Since:

  • 0.3.1


64
65
66
# File 'lib/hanami/action/request.rb', line 64

def [](*)
  raise NotImplementedError, 'Please use params passed to Action#call'
end

#[]=Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)

Since:

  • 0.3.1


72
73
74
# File 'lib/hanami/action/request.rb', line 72

def []=(*)
  raise NotImplementedError, 'Please use params passed to Action#call'
end

#content_typeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)

Since:

  • 0.3.1


16
17
18
# File 'lib/hanami/action/request.rb', line 16

def content_type
  raise NotImplementedError, 'Please use Action#content_type'
end

#cookiesObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)

Since:

  • 0.3.1


32
33
34
# File 'lib/hanami/action/request.rb', line 32

def cookies
  raise NotImplementedError, 'Please include Action::Cookies and use Action#cookies'
end

#delete_paramObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)

Since:

  • 0.3.1


56
57
58
# File 'lib/hanami/action/request.rb', line 56

def delete_param(*)
  raise NotImplementedError, 'Please use params passed to Action#call'
end

#paramsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)

Since:

  • 0.3.1


40
41
42
# File 'lib/hanami/action/request.rb', line 40

def params
  raise NotImplementedError, 'Please use params passed to Action#call'
end

#sessionObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)

Since:

  • 0.3.1


24
25
26
# File 'lib/hanami/action/request.rb', line 24

def session
  raise NotImplementedError, 'Please include Action::Session and use Action#session'
end

#update_paramObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)

Since:

  • 0.3.1


48
49
50
# File 'lib/hanami/action/request.rb', line 48

def update_param(*)
  raise NotImplementedError, 'Please use params passed to Action#call'
end

#values_atObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)

Since:

  • 0.3.1


80
81
82
# File 'lib/hanami/action/request.rb', line 80

def values_at(*)
  raise NotImplementedError, 'Please use params passed to Action#call'
end