DSHTTPService

Filters

压缩过滤器的使用

The Filters property specifies the DataSnap communication filters for an in-process instance.

The Filters property represents a collection of filters used to process the byte stream. 

 

 

http://127.0.0.1:8080/datasnap/rest/TServerMethods1/EchoString/Hello

 

RESTContext

属性可以置为空,那么访问地址就少了rest分隔,变为

http://127.0.0.1:8080/datasnap/TServerMethods1/EchoString/Hello

The RESTContext property specifies the REST URL context, like in http://my.site.com/datasnap/rest/.... In the given example, rest denotes that the request is a REST request and that it is processed by a REST service.  

 

DSContext

DSContext属性同上。

Specifies the DataSnap context for the connection. The standard DataSnap context is datasnap/. For example, to invoke a server method, the standard URL is http://host:port/datasnap/ClassName/MethodName/ParamValue.  

 

最终地址变为

http://127.0.0.1:8080/TServerMethods1/EchoString/Hello

posted on 2016-04-08 15:45  lypzxy  阅读(1006)  评论(0编辑  收藏  举报