Skip to content

Commit

Permalink
feat(net): Add response HTTP status to Networking engine responses (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavelas authored Sep 16, 2021
1 parent 6aac1d7 commit 2701527
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
10 changes: 5 additions & 5 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#
# Please keep the list sorted.

AdsWizz <*@adswizz.com>
Adrián Gómez Llorente <[email protected]>
AdsWizz <*@adswizz.com>
Alex Jones <[email protected]>
Alugha GmbH <*@alugha.com>
Alvaro Velad Galvan <[email protected]>
Expand All @@ -23,16 +23,16 @@ Anthony Stansbridge <[email protected]>
Benjamin Wallberg <[email protected]>
Bonnier Broadcasting <*@bonnierbroadcasting.com>
Bryan Huh <[email protected]>
Code It <*@code-it.fr>
Charter Communications Inc <*@charter.com>
Code It <*@code-it.fr>
Damien Deis <[email protected]>
Dany L'Hébreux <[email protected]>
Edgeware AB <*@edgeware.tv>
Esteban Dosztal <[email protected]>
Fadomire <[email protected]>
Google Inc. <*@google.com>
Edgeware AB <*@edgeware.tv>
Gil Gonen <[email protected]>
Giuseppe Samela <[email protected]>
Google Inc. <*@google.com>
Itay Kinnrot <[email protected]>
Jason Palmer <[email protected]>
Jesper Haug Karsrud <[email protected]>
Expand All @@ -50,6 +50,7 @@ Oskar Arvidsson <[email protected]>
Patrick Cruikshank <[email protected]>
Patrick Kunka <[email protected]>
Paul Jordaan <[email protected]>
Pavel Zablockij <[email protected]>
Percy Tse <[email protected]>
Peter Nycander <[email protected]>
Philo Inc. <*@philo.com>
Expand All @@ -71,4 +72,3 @@ uStudio Inc. <*@ustudio.com>
Verizon Digital Media Services <*@verizondigitalmedia.com>
Vincent Valot <[email protected]>
Wayne Morgan <[email protected]>

5 changes: 3 additions & 2 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Amila Sampath <[email protected]>
Andy Hochhaus <[email protected]>
Anthony Stansbridge <[email protected]>
Ashutosh Kumar Mukhiya <[email protected]>
Benjamin Wallberg <[email protected]>
Benjamin Wallberg <[email protected]>
Benjamin Wallberg <[email protected]>
Boris Cupac <[email protected]>
Brad Nadler <[email protected]>
Bryan Huh <[email protected]>
Expand Down Expand Up @@ -78,6 +78,7 @@ Oskar Arvidsson <[email protected]>
Patrick Cruikshank <[email protected]>
Patrick Kunka <[email protected]>
Paul Jordaan <[email protected]>
Pavel Zablockij <[email protected]>
Percy Tse <[email protected]>
Peter Nycander <[email protected]>
Prakash Duggaraju <[email protected]>
Expand Down Expand Up @@ -107,4 +108,4 @@ Vasanth Polipelli <[email protected]>
Vignesh Venkatasubramanian <[email protected]>
Vincent Valot <[email protected]>
Wayne Morgan <[email protected]>
Yohann Connell <[email protected]>
Yohann Connell <[email protected]>
3 changes: 3 additions & 0 deletions externs/shaka/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ shaka.extern.Request;
* @typedef {{
* uri: string,
* data: BufferSource,
* status: (number|undefined),
* headers: !Object.<string, string>,
* timeMs: (number|undefined),
* fromCache: (boolean|undefined)
Expand All @@ -119,6 +120,8 @@ shaka.extern.Request;
* redirects, but after request filters are executed.
* @property {BufferSource} data
* The body of the response.
* @property {(number|undefined)} status
* The response HTTP status code.
* @property {!Object.<string, string>} headers
* A map of response headers, if supported by the underlying protocol.
* All keys should be lowercased.
Expand Down
1 change: 1 addition & 0 deletions lib/net/http_plugin_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ shaka.net.HttpPluginUtils = class {
uri: responseURL || uri,
originalUri: uri,
data: data,
status: status,
headers: headers,
fromCache: !!headers['x-shaka-from-cache'],
};
Expand Down

0 comments on commit 2701527

Please sign in to comment.