Sha256: 3e3d3740d4adcad3b5acabf783cbb70be6a637553ac93c87c64626a32c3a61fc
Contents?: true
Size: 679 Bytes
Versions: 9
Compression:
Stored size: 679 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2017-2024, by Samuel Williams. # Copyright, 2024, by Thomas Morgan. require_relative 'http1' module Async module HTTP module Protocol module HTTP10 VERSION = "HTTP/1.0" def self.bidirectional? false end def self.trailer? false 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.0"] end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems