Skip to content

Commit

Permalink
Merge pull request #21 from lepidum/draft-14-framer-stream
Browse files Browse the repository at this point in the history
Draft 14 framer stream
  • Loading branch information
igrigorik committed Oct 27, 2014
2 parents da622d2 + a93f2fd commit edabe01
Show file tree
Hide file tree
Showing 11 changed files with 845 additions and 264 deletions.
5 changes: 3 additions & 2 deletions lib/http/2/client.rb
Expand Up @@ -35,10 +35,11 @@ def initialize(**settings)
# @param frame [Hash]
def send(frame)
if @state == :connection_header
emit(:frame, CONNECTION_HEADER)
@state = :connected
emit(:frame, CONNECTION_HEADER)

settings(stream_limit: @stream_limit, window_limit: @window_limit)
payload = @settings.select {|k,v| v != SPEC_DEFAULT_CONNECTION_SETTINGS[k]}
settings(payload)
end

super(frame)
Expand Down

0 comments on commit edabe01

Please sign in to comment.