本文整理汇总了C++中WtReplyPtr类的典型用法代码示例。如果您正苦于以下问题:C++ WtReplyPtr类的具体用法?C++ WtReplyPtr怎么用?C++ WtReplyPtr使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WtReplyPtr类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: requestMethod
std::string HTTPRequest::requestMethod() const
{
WtReplyPtr p = reply_;
if (!p.get())
return std::string();
return p->request().method;
}
开发者ID:ScienziatoBestia,项目名称:wt,代码行数:8,代码来源:HTTPRequest.C
示例2: pathInfo
std::string HTTPRequest::pathInfo() const
{
WtReplyPtr p = reply_;
if (!p.get())
return std::string();
return p->request().request_extra_path;
}
开发者ID:ScienziatoBestia,项目名称:wt,代码行数:8,代码来源:HTTPRequest.C
示例3: scriptName
std::string HTTPRequest::scriptName() const
{
WtReplyPtr p = reply_;
if (!p.get())
return std::string();
return p->request().request_path;
}
开发者ID:ScienziatoBestia,项目名称:wt,代码行数:8,代码来源:HTTPRequest.C
示例4: remoteAddr
std::string HTTPRequest::remoteAddr() const
{
WtReplyPtr p = reply_;
if (!p.get())
return std::string();
return p->request().remoteIP;
}
开发者ID:ScienziatoBestia,项目名称:wt,代码行数:8,代码来源:HTTPRequest.C
示例5: serverName
std::string HTTPRequest::serverName() const
{
WtReplyPtr p = reply_;
if (!p.get())
return std::string();
return p->configuration().serverName();
}
开发者ID:ScienziatoBestia,项目名称:wt,代码行数:8,代码来源:HTTPRequest.C
示例6: urlScheme
std::string HTTPRequest::urlScheme() const
{
WtReplyPtr p = reply_;
if (!p.get())
return std::string();
return p->urlScheme();
}
开发者ID:ScienziatoBestia,项目名称:wt,代码行数:8,代码来源:HTTPRequest.C
示例7: queryString
std::string HTTPRequest::queryString() const
{
WtReplyPtr p = reply_;
if (!p.get())
return std::string();
return p->request().request_query;
}
开发者ID:ScienziatoBestia,项目名称:wt,代码行数:8,代码来源:HTTPRequest.C
示例8: serverPort
std::string HTTPRequest::serverPort() const
{
WtReplyPtr p = reply_;
if (!p.get())
return std::string();
return boost::lexical_cast<std::string>(p->request().port);
}
开发者ID:ScienziatoBestia,项目名称:wt,代码行数:8,代码来源:HTTPRequest.C
示例9: flush
void HTTPRequest::flush(ResponseState state, CallbackFunction callback)
{
WtReplyPtr ptr = reply_;
if (state == ResponseDone)
reply_.reset();
ptr->send(callback, state == ResponseDone);
}
开发者ID:ScienziatoBestia,项目名称:wt,代码行数:9,代码来源:HTTPRequest.C
示例10: flush
void HTTPRequest::flush(ResponseState state, CallbackFunction callback)
{
WtReplyPtr ptr = reply_;
if (state == ResponseDone)
reply_.reset();
std::string s = outstream_.str();
outstream_.str("");
ptr->send(s, callback, state == ResponseDone);
}
开发者ID:Spencerx,项目名称:wt,代码行数:10,代码来源:HTTPRequest.C
示例11: headerValue
std::string HTTPRequest::headerValue(const std::string& name) const
{
WtReplyPtr p = reply_;
if (!p.get())
return std::string();
Request::HeaderMap::const_iterator i = p->request().headerMap.find(name);
if (i != p->request().headerMap.end())
return i->second;
else
return std::string();
}
开发者ID:ScienziatoBestia,项目名称:wt,代码行数:12,代码来源:HTTPRequest.C
注:本文中的WtReplyPtr类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论