protocol-http1 0.18.0 → 0.19.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0521599a9879c2b6e81ff0a30b70f7279308513521d152e307e6d377b43f4718'
4
- data.tar.gz: 5b33d64ddc8c51c3cb406df9cb51d0ac470c21d9e80dd62d1c3f9f05483206c5
3
+ metadata.gz: 788a7cdaae8c9fff36170e86592e43a06a793426dfb238a64178d278e5a9251e
4
+ data.tar.gz: 82627e3f5a65fae019e34a44ac6fb13956d14bcc59e1d1210c18d669c235621d
5
5
  SHA512:
6
- metadata.gz: db5b2495e0d15100ec73b0b557b9ee31d38168e83a2aa077af5d4cea2df4861fd8dc79f9a92bfae14de2e7a36483c0ee35e085023d9f8ac1e6c5ded574698609
7
- data.tar.gz: dbbefab8f69c35b4ee40e7e0951336e646569efbbd911d0296c3ff9d720d794c45d992d69572a26f56bcaafc8adbd291fff0defd053e1548cc65514bb7bf019b
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-2023, by Samuel Williams.
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
 
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2019-2023, by Samuel Williams.
4
+ # Copyright, 2019-2024, by Samuel Williams.
5
5
 
6
6
  module Protocol
7
7
  module HTTP1
8
- VERSION = "0.18.0"
8
+ VERSION = "0.19.1"
9
9
  end
10
10
  end
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.18.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-01-26 00:00:00.000000000 Z
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