Interface IRequestParameters
Assembly: OpenSearch.Net.dll
Syntax
public interface IRequestParameters
Properties
|
Edit this page
View Source
CustomResponseBuilder
Allows you to completely circumvent the serializer to build the final response.
Declaration
CustomResponseBuilderBase CustomResponseBuilder { get; set; }
Property Value
|
Edit this page
View Source
DefaultHttpMethod
Declaration
HttpMethod DefaultHttpMethod { get; }
Property Value
|
Edit this page
View Source
QueryString
The querystring that should be appended to the path of the request
Declaration
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
IRequestConfiguration RequestConfiguration { get; set; }
Property Value
|
Edit this page
View Source
SupportsBody
Declaration
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
string AcceptHeaderFromFormat(string format)
Parameters
| Type |
Name |
Description |
| string |
format |
|
Returns
|
Edit this page
View Source
ContainsQueryString(string)
Declaration
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
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
string GetResolvedQueryStringValue(string n, IConnectionConfigurationValues s)
Parameters
Returns
|
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
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
|
Extension Methods