Module: Baykit::BayServer::Docker::Base::InboundHandler
- Defined in:
- lib/baykit/bayserver/docker/base/inbound_handler.rb
Overview
interface
Instance Method Summary collapse
-
#send_end_tour(tur, keep_alive, &callback) ⇒ Object
Send end of contents to client.
-
#send_req_protocol_error(protocol_ex) ⇒ Object
Send protocol error return true if connection must be closed.
-
#send_res_content(tur, bytes, ofs, len, &callback) ⇒ Object
Send Contents to client.
-
#send_res_headers(tur) ⇒ Object
Send HTTP headers to client.
Instance Method Details
#send_end_tour(tur, keep_alive, &callback) ⇒ Object
Send end of contents to client.
sendEnd cannot refer Tour instance because it is discarded before call.
33 34 35 |
# File 'lib/baykit/bayserver/docker/base/inbound_handler.rb', line 33 def send_end_tour(tur, keep_alive, &callback) raise NotImplementedError() end |
#send_req_protocol_error(protocol_ex) ⇒ Object
Send protocol error
return true if connection must be closed
11 12 13 |
# File 'lib/baykit/bayserver/docker/base/inbound_handler.rb', line 11 def send_req_protocol_error(protocol_ex) raise NotImplementedError() end |
#send_res_content(tur, bytes, ofs, len, &callback) ⇒ Object
Send Contents to client
25 26 27 |
# File 'lib/baykit/bayserver/docker/base/inbound_handler.rb', line 25 def send_res_content(tur, bytes, ofs, len, &callback) raise NotImplementedError() end |
#send_res_headers(tur) ⇒ Object
Send HTTP headers to client
18 19 20 |
# File 'lib/baykit/bayserver/docker/base/inbound_handler.rb', line 18 def send_res_headers(tur) raise NotImplementedError() end |