-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.rb
More file actions
22 lines (15 loc) · 690 Bytes
/
test.rb
File metadata and controls
22 lines (15 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env ruby
# frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Samuel Williams.
$LOAD_PATH.unshift(File.expand_path("lib", __dir__))
$LOAD_PATH.unshift(File.expand_path("fixtures", __dir__))
require "protocol/http3/client_server"
result = Protocol::HTTP3::Fixtures.exchange
unless result[:request_headers].include?([":method", "GET"])
abort "Request headers did not include GET method: #{result[:request_headers].inspect}"
end
unless result[:response_headers].include?([":status", "200"])
abort "Response headers did not include 200 status: #{result[:response_headers].inspect}"
end
$stderr.puts "Completed HTTP/3 client/server exchange"