Skip to content

Commit 2701527

Browse files
authored
feat(net): Add response HTTP status to Networking engine responses (shaka-project#3641)
Closes shaka-project#3640
1 parent 6aac1d7 commit 2701527

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

AUTHORS

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#
1414
# Please keep the list sorted.
1515

16-
AdsWizz <*@adswizz.com>
1716
Adrián Gómez Llorente <[email protected]>
17+
AdsWizz <*@adswizz.com>
1818
Alex Jones <[email protected]>
1919
Alugha GmbH <*@alugha.com>
2020
Alvaro Velad Galvan <[email protected]>
@@ -23,16 +23,16 @@ Anthony Stansbridge <[email protected]>
2323
Benjamin Wallberg <[email protected]>
2424
Bonnier Broadcasting <*@bonnierbroadcasting.com>
2525
Bryan Huh <[email protected]>
26-
Code It <*@code-it.fr>
2726
Charter Communications Inc <*@charter.com>
27+
Code It <*@code-it.fr>
2828
Damien Deis <[email protected]>
2929
Dany L'Hébreux <[email protected]>
30+
Edgeware AB <*@edgeware.tv>
3031
Esteban Dosztal <[email protected]>
3132
32-
Google Inc. <*@google.com>
33-
Edgeware AB <*@edgeware.tv>
3433
Gil Gonen <[email protected]>
3534
Giuseppe Samela <[email protected]>
35+
Google Inc. <*@google.com>
3636
Itay Kinnrot <[email protected]>
3737
Jason Palmer <[email protected]>
3838
Jesper Haug Karsrud <[email protected]>
@@ -50,6 +50,7 @@ Oskar Arvidsson <[email protected]>
5050
Patrick Cruikshank <[email protected]>
5151
Patrick Kunka <[email protected]>
5252
Paul Jordaan <[email protected]>
53+
Pavel Zablockij <[email protected]>
5354
Percy Tse <[email protected]>
5455
Peter Nycander <[email protected]>
5556
Philo Inc. <*@philo.com>
@@ -71,4 +72,3 @@ uStudio Inc. <*@ustudio.com>
7172
Verizon Digital Media Services <*@verizondigitalmedia.com>
7273
Vincent Valot <[email protected]>
7374
Wayne Morgan <[email protected]>
74-

CONTRIBUTORS

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Amila Sampath <[email protected]>
3131
Andy Hochhaus <[email protected]>
3232
Anthony Stansbridge <[email protected]>
3333
Ashutosh Kumar Mukhiya <[email protected]>
34-
Benjamin Wallberg <[email protected]>
3534
Benjamin Wallberg <[email protected]>
35+
Benjamin Wallberg <[email protected]>
3636
Boris Cupac <[email protected]>
3737
Brad Nadler <[email protected]>
3838
Bryan Huh <[email protected]>
@@ -78,6 +78,7 @@ Oskar Arvidsson <[email protected]>
7878
Patrick Cruikshank <[email protected]>
7979
Patrick Kunka <[email protected]>
8080
Paul Jordaan <[email protected]>
81+
Pavel Zablockij <[email protected]>
8182
Percy Tse <[email protected]>
8283
Peter Nycander <[email protected]>
8384
Prakash Duggaraju <[email protected]>
@@ -107,4 +108,4 @@ Vasanth Polipelli <[email protected]>
107108
Vignesh Venkatasubramanian <[email protected]>
108109
Vincent Valot <[email protected]>
109110
Wayne Morgan <[email protected]>
110-
Yohann Connell <[email protected]>
111+
Yohann Connell <[email protected]>

externs/shaka/net.js

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ shaka.extern.Request;
101101
* @typedef {{
102102
* uri: string,
103103
* data: BufferSource,
104+
* status: (number|undefined),
104105
* headers: !Object.<string, string>,
105106
* timeMs: (number|undefined),
106107
* fromCache: (boolean|undefined)
@@ -119,6 +120,8 @@ shaka.extern.Request;
119120
* redirects, but after request filters are executed.
120121
* @property {BufferSource} data
121122
* The body of the response.
123+
* @property {(number|undefined)} status
124+
* The response HTTP status code.
122125
* @property {!Object.<string, string>} headers
123126
* A map of response headers, if supported by the underlying protocol.
124127
* All keys should be lowercased.

lib/net/http_plugin_utils.js

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ shaka.net.HttpPluginUtils = class {
3434
uri: responseURL || uri,
3535
originalUri: uri,
3636
data: data,
37+
status: status,
3738
headers: headers,
3839
fromCache: !!headers['x-shaka-from-cache'],
3940
};

0 commit comments

Comments
 (0)