Class RequestParameterProvider
Inheritance
RequestParameterProvider
Assembly: Glitch9.IO.dll
Syntax
public class RequestParameterProvider
Constructors
|
Edit this page
View Source
RequestParameterProvider(Func<string, string>, string)
Declaration
public RequestParameterProvider(Func<string, string> provider, string template = null)
Parameters
Properties
|
Edit this page
View Source
Provider
A function that provides the value at runtime.
Declaration
public Func<string, string> Provider { get; set; }
Property Value
|
Edit this page
View Source
Template
Optional.
If the API requires a specific header name instead of 'Bearer {0}', it will be set here.
Declaration
public string Template { get; set; }
Property Value
Methods
|
Edit this page
View Source
Bearer(Func<string, string>)
Declaration
public static RequestParameterProvider Bearer(Func<string, string> provider)
Parameters
Returns
|
Edit this page
View Source
Declaration
public string FormatValue(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
|
Edit this page
View Source
GetValue(string)
Declaration
public string GetValue(string arg = null)
Parameters
| Type |
Name |
Description |
| string |
arg |
|
Returns
|
Edit this page
View Source
OverrideValue(string)
Declaration
public string OverrideValue(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
Extension Methods