Class RequestParameters<T>
- Namespace
- Elasticsearch.Net
- Assembly
- Elasticsearch.Net.dll
Used by the raw client to compose querystring parameters in a matter that still exposes some xmldocs You can always pass a simple NameValueCollection if you want.
public abstract class RequestParameters<T> : IRequestParameters where T : RequestParameters<T>
Type Parameters
T
- Inheritance
-
RequestParameters<T>
- Implements
- Derived
- Inherited Members
Constructors
RequestParameters()
protected RequestParameters()
Properties
DefaultHttpMethod
public abstract 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();
public Func<IApiCallDetails, Stream, object> DeserializationOverride { get; set; }
Property Value
QueryString
The querystring that should be appended to the path of the request
public Dictionary<string, object> QueryString { get; set; }
Property Value
RequestConfiguration
Configuration for this specific request, i.e disable sniffing, custom timeouts etcetera.
public IRequestConfiguration RequestConfiguration { get; set; }
Property Value
Methods
ContainsQueryString(string)
public 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
public 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.
public string GetResolvedQueryStringValue(string n, IConnectionConfigurationValues s)
Parameters
Returns
Q(string, object)
protected void Q(string name, object value)
Parameters
Q<TOut>(string)
protected TOut Q<TOut>(string name)
Parameters
name
string
Returns
- TOut
Type Parameters
TOut
SetQueryString(string, object)
Sets a query string param. If value
is null and the parameter exists it will be removed
public void SetQueryString(string name, object value)