Sha256: 38534dc1f369d9d2cccb8a87ec31440b21af7bd5422c41b9de376c9a3777f5c2

Contents?: true

Size: 716 Bytes

Versions: 16

Compression:

Stored size: 716 Bytes

Contents

# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2017-2024, by Samuel Williams.
# Copyright, 2018, by Janko Marohnić.
# Copyright, 2024, by Thomas Morgan.

require_relative "http1"

module Async
	module HTTP
		module Protocol
			module HTTP11
				VERSION = "HTTP/1.1"
				
				def self.bidirectional?
					true
				end
				
				def self.trailer?
					true
				end
				
				def self.client(peer)
					stream = ::IO::Stream(peer)
					
					return HTTP1::Client.new(stream, VERSION)
				end
				
				def self.server(peer)
					stream = ::IO::Stream(peer)
					
					return HTTP1::Server.new(stream, VERSION)
				end
				
				def self.names
					["http/1.1"]
				end
			end
		end
	end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
async-http-0.87.0 lib/async/http/protocol/http11.rb
async-http-0.86.0 lib/async/http/protocol/http11.rb
async-http-0.85.0 lib/async/http/protocol/http11.rb
async-http-0.84.0 lib/async/http/protocol/http11.rb
async-http-0.83.1 lib/async/http/protocol/http11.rb
async-http-0.83.0 lib/async/http/protocol/http11.rb
async-http-0.82.3 lib/async/http/protocol/http11.rb
async-http-0.82.2 lib/async/http/protocol/http11.rb
async-http-0.82.1 lib/async/http/protocol/http11.rb
async-http-0.82.0 lib/async/http/protocol/http11.rb
async-http-0.81.0 lib/async/http/protocol/http11.rb
async-http-0.80.1 lib/async/http/protocol/http11.rb
async-http-0.80.0 lib/async/http/protocol/http11.rb
async-http-0.79.0 lib/async/http/protocol/http11.rb
async-http-0.78.0 lib/async/http/protocol/http11.rb
async-http-0.77.0 lib/async/http/protocol/http11.rb