Interface IRequestParameters
- Namespace
- Elasticsearch.Net
- Assembly
- Elasticsearch.Net.dll
public interface IRequestParameters
Properties
DefaultHttpMethod
HttpMethod DefaultHttpMethod { get; }
Property Value
DeserializationOverride
A method that can be set on the request to take ownership of creating the response object. When set this will be called instead of the internal .Deserialize();
Func<IApiCallDetails, Stream, object> DeserializationOverride { get; set; }
Property Value
QueryString
The querystring that should be appended to the path of the request
Dictionary<string, object> QueryString { get; set; }
Property Value
RequestConfiguration
Configuration for this specific request, i.e disable sniffing, custom timeouts etcetera.
IRequestConfiguration RequestConfiguration { get; set; }
Property Value
Methods
ContainsQueryString(string)
bool ContainsQueryString(string name)
Parameters
name
string
Returns
GetQueryStringValue<TOut>(string)
Get's the value as its stored on the querystring using its original type
TOut GetQueryStringValue<TOut>(string name)
Parameters
name
string
Returns
- TOut
Type Parameters
TOut
GetResolvedQueryStringValue(string, IConnectionConfigurationValues)
Gets the stringified representation of a query string value as it would be sent to elasticsearch.
string GetResolvedQueryStringValue(string n, IConnectionConfigurationValues s)
Parameters
Returns
SetQueryString(string, object)
Sets a query string param. If value
is null and the parameter exists it will be removed
void SetQueryString(string name, object value)