net: add api to set request flags for testing
This commit is contained in:
parent
35349643af
commit
7456b9ae17
4 changed files with 32 additions and 0 deletions
|
@ -173,6 +173,7 @@ class URLRequest : public mate::EventEmitter<URLRequest> {
|
|||
bool SetExtraHeader(const std::string& name, const std::string& value);
|
||||
void RemoveExtraHeader(const std::string& name);
|
||||
void SetChunkedUpload(bool is_chunked_upload);
|
||||
void SetLoadFlags(int flags);
|
||||
|
||||
int StatusCode() const;
|
||||
std::string StatusMessage() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue