title: How can I access/modify headers of request/reponses in a Delphi 2010 DataSnap Server
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>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.</p>