Interface IRestClientUrlBuilder
URL building utility that implements full url path with parameters
Namespace: BlazorFocused
Assembly: BlazorFocused.Client.dll
Syntax
public interface IRestClientUrlBuilder
Methods
| Improve this Doc View SourceBuild()
Compiles original set path with parameters
Declaration
string Build()
Returns
| Type | Description |
|---|---|
| System.String | Full URL path |
SetPath(String)
Sets absolute or relative url for building
Declaration
IRestClientUrlBuilder SetPath(string absoluteOrRelativeUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | absoluteOrRelativeUrl | Absolute or relative url parameters will be placed on |
Returns
| Type | Description |
|---|---|
| IRestClientUrlBuilder | Continuation of IRestClientUrlBuilder to further build url |
WithParameter(String, String)
Adds parameters to url
Declaration
IRestClientUrlBuilder WithParameter(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | Url parameter key |
| System.String | value | Url parameter value |
Returns
| Type | Description |
|---|---|
| IRestClientUrlBuilder | Continuation of IRestClientUrlBuilder to further build url |