I'm looking for an example that shows how to access HTTP header fields from an incoming request to an XData server app
If implementing Service Operations, use TXDataOperationContext to access the THttpServerRequest and i'ts THttpHeaders
ex:
uses
XData.Server.Module;
{..}
procedure ServiceA;
var
ContentType: string;
begin
ContentType := TXDataOperationContext.Current.Request.Headers.Get('Content-Type');
HTH
2 Likes
This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.