Make fetchModifyHeaders private (#767)

This commit is contained in:
toasted-nutbread 2020-09-04 18:00:22 -04:00 committed by GitHub
parent cf35b9338f
commit d34f1eab02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,10 +27,12 @@ class RequestBuilder {
['cookie', null],
['origin', {name: 'Origin', value: originURL}]
];
return this.fetchModifyHeaders(url, init, modifications);
return await this._fetchModifyHeaders(url, init, modifications);
}
async fetchModifyHeaders(url, init, modifications) {
// Private
async _fetchModifyHeaders(url, init, modifications) {
const matchURL = this._getMatchURL(url);
let done = false;
@ -68,8 +70,6 @@ class RequestBuilder {
}
}
// Private
_onBeforeSendHeadersAddListener(callback, filter) {
const extraInfoSpec = this._onBeforeSendHeadersExtraInfoSpec;
for (let i = 0; i < 2; ++i) {