Adding URLResponse to emit response events, implementing status code.
This commit is contained in:
parent
7521aeea09
commit
81eab9887b
6 changed files with 185 additions and 32 deletions
|
@ -25,9 +25,20 @@ public:
|
|||
const std::string& url,
|
||||
base::WeakPtr<api::URLRequest> delegate);
|
||||
|
||||
void Start();
|
||||
void set_method(const std::string& method);
|
||||
|
||||
void Write();
|
||||
void End();
|
||||
void Abort();
|
||||
void SetHeader();
|
||||
void GetHeader();
|
||||
void RemoveHeader();
|
||||
|
||||
int StatusCode();
|
||||
void StatusMessage();
|
||||
void ResponseHeaders();
|
||||
void ResponseHttpVersion();
|
||||
|
||||
protected:
|
||||
// Overrides of net::URLRequest::Delegate
|
||||
virtual void OnResponseStarted(net::URLRequest* request) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue