views:

113

answers:

0

I'm in the process of building a DataSnap Server that functions as WebDAV server and I'm trying to read the request headers when using a DSHTTPService and then modify the response headers.

Can anyone point me in the right direction? I've notice the Trace TDSRequest and TDSResponse are ancestors of TDSRequestIndy and TDSResponseIndy and those components have access to the headers but am not entirely sure how to get from a TDSRequest to TDSRequestIndy.

Also I didn't think that the Trace would be the cleanest way to access the request and response, but it's the only way I've found so far.

The reason for trying to do this with DataSnap and not just straight Indy is that I'm looking to use DataSnap for other remote methods.