File: http1.rb

package info (click to toggle)
ruby-async-http 0.94.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 916 kB
  • sloc: ruby: 5,224; javascript: 40; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 485 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2025, by Samuel Williams.

require "async/http/protocol/http"
require "async/http/a_protocol"

describe Async::HTTP::Protocol::HTTP1 do
	with ".new" do
		it "can configure the protocol" do
			protocol = subject.new(
				persistent: false,
				maximum_line_length: 4096,
			)
			
			expect(protocol.options).to have_keys(
				persistent: be == false,
				maximum_line_length: be == 4096,
			)
		end
	end
end