Class: DatawireQuarkCore::IncomingRequest

Inherits:
HTTP::Request show all
Defined in:
lib/datawire-quark-core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from HTTP::Request

#initialize

Methods included from GettersSetters

#getters, #setters

Methods inherited from HTTP::Base

#getHeader, #getHeaders, #setHeader

Constructor Details

This class inherits a constructor from DatawireQuarkCore::HTTP::Request

Instance Attribute Details

#actionObject

Returns the value of attribute action.



753
754
755
# File 'lib/datawire-quark-core.rb', line 753

def action
  @action
end

#futObject

Returns the value of attribute fut.



750
751
752
# File 'lib/datawire-quark-core.rb', line 750

def fut
  @fut
end

#requestObject

Returns the value of attribute request.



751
752
753
# File 'lib/datawire-quark-core.rb', line 751

def request
  @request
end

#rsObject

Returns the value of attribute rs.



749
750
751
# File 'lib/datawire-quark-core.rb', line 749

def rs
  @rs
end

#svrObject

Returns the value of attribute svr.



752
753
754
# File 'lib/datawire-quark-core.rb', line 752

def svr
  @svr
end

#ws_handlerObject

Returns the value of attribute ws_handler.



754
755
756
# File 'lib/datawire-quark-core.rb', line 754

def ws_handler
  @ws_handler
end

Instance Method Details

#fail!(code, body) ⇒ Object



756
757
758
759
760
# File 'lib/datawire-quark-core.rb', line 756

def fail! (code, body)
  @rs.setCode(code)
  @rs.setBody(body)
  respond :http_response
end

#respond(action) ⇒ Object



762
763
764
# File 'lib/datawire-quark-core.rb', line 762

def respond(action)
  @svr.respond(self, action)
end