Class: DatawireQuarkCore::HTTPAdapter
- Inherits:
-
Adapter
- Object
- Adapter
- DatawireQuarkCore::HTTPAdapter
show all
- Defined in:
- lib/datawire-quark-core.rb
Instance Attribute Summary
Attributes inherited from Adapter
#servlet, #source, #uri, #url
Instance Method Summary
collapse
Methods inherited from Adapter
#effective_url, #initialize, #key, #scheme_supported?, #secure?
Instance Method Details
#process_request(rq) ⇒ Object
832
833
834
835
836
837
838
|
# File 'lib/datawire-quark-core.rb', line 832
def process_request(rq)
if rq.request.websocket?
rq.fail! 400, "http here, move along\r\n"
else
@events.event { servlet.onHTTPRequest(rq, rq.rs) }
end
end
|
#process_response(rq) ⇒ Object
840
841
|
# File 'lib/datawire-quark-core.rb', line 840
def process_response(rq)
end
|
#schemes ⇒ Object
828
829
830
|
# File 'lib/datawire-quark-core.rb', line 828
def schemes
{plain: "http", secure: "https"}
end
|