Method GetRequestHost
- Namespace
- IntentSharp.Providers
- Assembly
- IntentSharp.dll
GetRequestHost(AIRequest)
The host this provider sends request to, which the Request checkpoint reports as
request.host for that call, in the form RequestHost describes. The default returns
RequestHost, so a provider that sends every request to one host needs nothing more. A provider that
passes each request on to one of several others, chosen from the request (such as by one of its
Tags), can override it to report the host of the provider that request goes to. Null when
the provider cannot say for this request: request.host is then unknown, so an enforced rule on it refuses the
call.
string? GetRequestHost(AIRequest request)
Parameters
requestAIRequestThe request the client is about to send through this provider.
Returns
- string
The host, or null when the provider cannot say.
Remarks
The client asks it before each answer call and its cache read, with the request as it will be sent, tags included. For the judge call, whose request the judge builds later, the client reads RequestHost. It is asked for the check only, so an implementation sends nothing.