protocol-http1 0.18.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/protocol/http1/connection.rb +10 -1
- data/lib/protocol/http1/version.rb +2 -2
- data/license.md +1 -0
- data.tar.gz.sig +0 -0
- metadata +3 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 788a7cdaae8c9fff36170e86592e43a06a793426dfb238a64178d278e5a9251e
|
4
|
+
data.tar.gz: 82627e3f5a65fae019e34a44ac6fb13956d14bcc59e1d1210c18d669c235621d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3532ee1607c47d0967772b13a87facf7639218a075b859f6919eb669e2f52fda1aa8b1435bc708e6f45110401aa850759578cb14193156d00422d855b9a8547
|
7
|
+
data.tar.gz: 3736f3807b61c4c6d2297931838aff49b9cd8f5263b10fa42ed512e812a2a141974c99af8593ae83dc49fcc580f21817397aee82ea20460563f6418c910fa9f4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2019-
|
4
|
+
# Copyright, 2019-2024, by Samuel Williams.
|
5
5
|
# Copyright, 2019, by Brian Morearty.
|
6
6
|
# Copyright, 2020, by Bruno Sutic.
|
7
7
|
# Copyright, 2023, by Thomas Morgan.
|
8
|
+
# Copyright, 2024, by Anton Zhuravsky.
|
8
9
|
|
9
10
|
require 'protocol/http/headers'
|
10
11
|
|
@@ -104,6 +105,13 @@ module Protocol
|
|
104
105
|
def write_upgrade_header(upgrade)
|
105
106
|
@stream.write("connection: upgrade\r\nupgrade: #{upgrade}\r\n")
|
106
107
|
end
|
108
|
+
|
109
|
+
# Indicates whether the connection has been hijacked meaning its
|
110
|
+
# IO has been handed over and is not usable anymore.
|
111
|
+
# @return [Boolean] hijack status
|
112
|
+
def hijacked?
|
113
|
+
@stream.nil?
|
114
|
+
end
|
107
115
|
|
108
116
|
# Effectively close the connection and return the underlying IO.
|
109
117
|
# @return [IO] the underlying non-blocking IO.
|
@@ -371,6 +379,7 @@ module Protocol
|
|
371
379
|
end
|
372
380
|
end
|
373
381
|
|
382
|
+
@stream.flush
|
374
383
|
@stream.close_write
|
375
384
|
end
|
376
385
|
|
data/license.md
CHANGED
@@ -5,6 +5,7 @@ Copyright, 2019, by Brian Morearty.
|
|
5
5
|
Copyright, 2020, by Olle Jonsson.
|
6
6
|
Copyright, 2020, by Bruno Sutic.
|
7
7
|
Copyright, 2023, by Thomas Morgan.
|
8
|
+
Copyright, 2024, by Anton Zhuravsky.
|
8
9
|
|
9
10
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
10
11
|
of this software and associated documentation files (the "Software"), to deal
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protocol-http1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
- Thomas Morgan
|
9
|
+
- Anton Zhuravsky
|
9
10
|
- Brian Morearty
|
10
11
|
- Bruno Sutic
|
11
12
|
- Olle Jonsson
|
@@ -41,7 +42,7 @@ cert_chain:
|
|
41
42
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
42
43
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
43
44
|
-----END CERTIFICATE-----
|
44
|
-
date: 2024-
|
45
|
+
date: 2024-04-20 00:00:00.000000000 Z
|
45
46
|
dependencies:
|
46
47
|
- !ruby/object:Gem::Dependency
|
47
48
|
name: protocol-http
|
metadata.gz.sig
CHANGED
Binary file
|