Class RequestParameters<T>
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.
Inheritance
RequestParameters<T>
Assembly: OpenSearch.Net.dll
Syntax
public abstract class RequestParameters<T> : IRequestParameters where T : RequestParameters<T>
Type Parameters
Properties
|
Edit this page
View Source
CustomResponseBuilder
Allows you to completely circumvent the serializer to build the final response.
Declaration
public CustomResponseBuilderBase CustomResponseBuilder { get; set; }
Property Value
|
Edit this page
View Source
DefaultHttpMethod
Declaration
public abstract HttpMethod DefaultHttpMethod { get; }
Property Value
|
Edit this page
View Source
QueryString
The querystring that should be appended to the path of the request
Declaration
public Dictionary<string, object> QueryString { get; set; }
Property Value
|
Edit this page
View Source
RequestConfiguration
Configuration for this specific request, i.e disable sniffing, custom timeouts etcetera.
Declaration
public IRequestConfiguration RequestConfiguration { get; set; }
Property Value
|
Edit this page
View Source
SupportsBody
Declaration
public abstract bool SupportsBody { get; }
Property Value
Methods
|
Edit this page
View Source
Gets the HTTP Accept Header value from the shortened name. If the shortened name is not recognized,
null
is returned.
Declaration
public string AcceptHeaderFromFormat(string format)
Parameters
Type |
Name |
Description |
string |
format |
|
Returns
|
Edit this page
View Source
ContainsQueryString(string)
Declaration
public bool ContainsQueryString(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
|
Edit this page
View Source
GetQueryStringValue<TOut>(string)
Get's the value as its stored on the querystring using its original type
Declaration
public TOut GetQueryStringValue<TOut>(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
Type Parameters
|
Edit this page
View Source
GetResolvedQueryStringValue(string, IConnectionConfigurationValues)
Gets the stringified representation of a query string value as it would be sent to OpenSearch.
Declaration
public string GetResolvedQueryStringValue(string n, IConnectionConfigurationValues s)
Parameters
Returns
|
Edit this page
View Source
Q(string, object)
Declaration
protected void Q(string name, object value)
Parameters
|
Edit this page
View Source
Q<TOut>(string)
Declaration
protected TOut Q<TOut>(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
Type Parameters
|
Edit this page
View Source
Declaration
protected void SetAcceptHeader(string format)
Parameters
Type |
Name |
Description |
string |
format |
|
|
Edit this page
View Source
SetQueryString(string, object)
Sets a query string param. If value
is null and the parameter exists it will be removed
Declaration
public void SetQueryString(string name, object value)
Parameters
Type |
Name |
Description |
string |
name |
The query string parameter to add
|
object |
value |
The value to set, if null removes name from the query string if it exists
|
Implements
Extension Methods