Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update example to new API, drop TLS

  • Loading branch information...
commit cfef9511736e152dcd907ed7067a78b38c000656 1 parent 06190ab
@igrigorik authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/spdy_server.rb
View
4 examples/spdy_server.rb
@@ -6,7 +6,7 @@
class SPDYHandler < EM::Connection
def post_init
@parser = SPDY::Parser.new
- @parser.on_headers do |stream_id, associated_stream, priority, headers|
+ @parser.on_headers do |stream_id, headers|
p [:SPDY_HEADERS, headers]
sr = SPDY::Protocol::Control::SynReply.new({:zlib_session => @parser.zlib_session})
@@ -29,10 +29,10 @@ def post_init
p [:SPDY, :sent, :DATA_FIN]
end
- start_tls
end
def receive_data(data)
+ p [:received, data]
@parser << data
end
Please sign in to comment.
Something went wrong with that request. Please try again.