StupidBeauty
Read times:313Posted at:Mon Jan 30 23:58:29 2012
- no title specified

Wt3.2.0文档翻译:Wt::WServer类参考,Wt::WServer Class Reference

成员函数文档

void Wt::WServer::addEntryPoint

(

EntryPointType

type,

ApplicationCreator

callback,

const std::string &

path = std::string(),

const std::string &

favicon = std::string()

)

将一个入口点与一个用来创建新应用程序的回调函数绑定在一起。

path 是指此应用程序被部署到的本地URL:每当有用户访问此 URL 时,便会调用回调函数来创建一个新的应用程序。如果为空,则会依据此服务器的配置中的部署路径来推断出URL(参考 内置的httpd配置信息)。

路径必须以'/'开始。

可选的favicon 是一个指向缩略图标(favicon)的URL 路径(其中不应当包含主机名部分!),在浏览器中會显示出这個图标来代表妳的程序。或者,妳可以在配置文件中使用"favicon"属性来指定一个缩略图标(参考程序设置(wt_config.xml))。

void Wt::WServer::addResource

(

WResource *

resource,

const std::string &

path

)

将一個资源绑定到某個固定路径。

资源可能是某个会话私有的,也可能是公有的。使用这個方法来添加一個具有固定路径的公有资源。

Your opinions
Your name:Email:Website url:Opinion content:
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4