Make fetchModifyHeaders private (#767)
This commit is contained in:
parent
cf35b9338f
commit
d34f1eab02
@ -27,10 +27,12 @@ class RequestBuilder {
|
|||||||
['cookie', null],
|
['cookie', null],
|
||||||
['origin', {name: 'Origin', value: originURL}]
|
['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);
|
const matchURL = this._getMatchURL(url);
|
||||||
|
|
||||||
let done = false;
|
let done = false;
|
||||||
@ -68,8 +70,6 @@ class RequestBuilder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Private
|
|
||||||
|
|
||||||
_onBeforeSendHeadersAddListener(callback, filter) {
|
_onBeforeSendHeadersAddListener(callback, filter) {
|
||||||
const extraInfoSpec = this._onBeforeSendHeadersExtraInfoSpec;
|
const extraInfoSpec = this._onBeforeSendHeadersExtraInfoSpec;
|
||||||
for (let i = 0; i < 2; ++i) {
|
for (let i = 0; i < 2; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user