Interface IWebResponseScriptParameters
- Namespace
- ArcanaDevelopment.adTempus.ApplicationIntegration
- Assembly
- ArcanaDevelopment.adTempus.ApplicationIntegration.dll
Context information for user scripts that get run to process the response to a Web Request Task.
public interface IWebResponseScriptParameters : IScriptParameters
Properties
ContentType
The media type of the response (for example, "application/json").
string ContentType { get; }
Property Value
- string
ReasonPhrase
The HTTP reason phrase returned by the server (for example, "OK").
string ReasonPhrase { get; }
Property Value
- string
RequestURL
The URL the request was sent to, after variable tokens were expanded.
string RequestURL { get; }
Property Value
- string
ResponseFileName
The name of the temporary file that contains the response body.
string ResponseFileName { get; }
Property Value
- string
Remarks
The file is deleted when the script finishes. Use this property to process binary or very large responses.
ResponseHeaders
The response headers, keyed by header name (case-insensitive).
IReadOnlyDictionary<string, string> ResponseHeaders { get; }
Property Value
- IReadOnlyDictionary<string, string>
Remarks
Values of headers that occur more than once are combined, separated by commas.
ResponseText
The response body as text.
string ResponseText { get; }
Property Value
- string
Remarks
The body is read from ResponseFileName using the character set of the response (UTF-8 if none is specified).
StatusCode
The HTTP status code returned by the server.
int StatusCode { get; }
Property Value
- int