summaryrefslogtreecommitdiff
path: root/src/Request.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-03-07 10:36:42 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-03-07 10:36:42 +0000
commitb0f180c99c83be511b32c2a22e4e7d701c69a3d9 (patch)
tree1e8cc5e0a99d67d64b86c49b8d1f68d11fed6244 /src/Request.h
parent6ce44b001de112ee1fb08ea77ed9dc7f045cf4c8 (diff)
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
url -> uri in Request class. * src/AbstractCommand.cc * src/AdaptiveURISelector.cc * src/DefaultBtAnnounce.cc * src/FeedbackURISelector.cc * src/FileEntry.cc * src/FileEntry.h * src/HttpRequest.h * src/HttpResponse.cc * src/InitiateConnectionCommandFactory.cc * src/Metalink2RequestGroup.cc * src/OptionHandlerImpl.h * src/ProtocolDetector.cc * src/Request.cc * src/Request.h * src/XmlRpcMethodImpl.cc * test/AuthConfigFactoryTest.cc * test/FtpConnectionTest.cc * test/HttpRequestTest.cc * test/HttpResponseTest.cc * test/RequestTest.cc
Diffstat (limited to 'src/Request.h')
-rw-r--r--src/Request.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/Request.h b/src/Request.h
index 916237c4..db9b9f5c 100644
--- a/src/Request.h
+++ b/src/Request.h
@@ -46,14 +46,14 @@ namespace aria2 {
class Request {
private:
- std::string _url;
- std::string _currentUrl;
+ std::string _uri;
+ std::string _currentUri;
/**
- * URL previously requested to the server. This is used as Referer
+ * URI previously requested to the server. This is used as Referer
*/
- std::string _previousUrl;
+ std::string _previousUri;
/**
- * URL used as Referer in the initial request
+ * URI used as Referer in the initial request
*/
std::string _referer;
std::string _protocol;
@@ -90,17 +90,17 @@ private:
bool _removalRequested;
- bool parseUrl(const std::string& url);
+ bool parseUri(const std::string& uri);
public:
Request();
- // Sets url to _url and parses URL. Returns true if parsing goes
+ // Sets uri to _uri and parses URI. Returns true if parsing goes
// successful, otherwise returns false.
- bool setUrl(const std::string& url);
- // Parses URL. _url field are not altered by this method. Returns
+ bool setUri(const std::string& uri);
+ // Parses URI. _uri field are not altered by this method. Returns
// true if parsing goes successful, otherwise returns false.
- bool redirectUrl(const std::string& url);
- bool resetUrl();
+ bool redirectUri(const std::string& uri);
+ bool resetUri();
void resetTryCount() { _tryCount = 0; }
void addTryCount() { ++_tryCount; }
unsigned int getTryCount() const { return _tryCount; }
@@ -112,12 +112,12 @@ public:
return _redirectCount;
}
- // Returns URI passed by setUrl()
- const std::string& getUrl() const { return _url; }
- const std::string& getCurrentUrl() const { return _currentUrl; }
- const std::string& getPreviousUrl() const { return _previousUrl; }
+ // Returns URI passed by setUri()
+ const std::string& getUri() const { return _uri; }
+ const std::string& getCurrentUri() const { return _currentUri; }
+ const std::string& getPreviousUri() const { return _previousUri; }
const std::string& getReferer() const { return _referer; }
- void setReferer(const std::string& url);
+ void setReferer(const std::string& uri);
const std::string& getProtocol() const { return _protocol; }
const std::string& getHost() const { return _host; }
// Same as getHost(), but for IPv6 literal addresses, enclose them