Condividi tramite


RequestUriBuilder Class

Definition

Provides a custom builder for Uniform Resource Identifiers (URIs) and modifies URIs for the Uri class.

public class RequestUriBuilder
type RequestUriBuilder = class
Public Class RequestUriBuilder
Inheritance
RequestUriBuilder

Constructors

RequestUriBuilder()

Properties

HasPath

Gets whether or not this instance of RequestUriBuilder has a path.

HasQuery

Gets whether or not this instance of RequestUriBuilder has a query.

Host

Gets or sets the Domain Name System (DNS) host name or IP address of a server.

Path

Gets or sets the path to the resource referenced by the URI.

PathAndQuery

Gets the path and query string to the resource referenced by the URI.

Port

Gets or sets the port number of the URI.

Query

Gets or sets any query information included in the URI.

Scheme

Gets or sets the scheme name of the URI.

Methods

AppendPath(ReadOnlySpan<Char>, Boolean)

Optionally escapes and appends the value to Path without adding path separator. If escape is true, path segments and any other characters will be escaped, e.g. ":" will be escaped as "%3a".

AppendPath(String)

Escapes and appends the value to Path without adding path separator. Path segments and any other characters will be escaped, e.g. ":" will be escaped as "%3a".

AppendPath(String, Boolean)

Optionally escapes and appends the value to Path without adding path separator. If escape is true, path segments and any other characters will be escaped, e.g. ":" will be escaped as "%3a".

AppendQuery(ReadOnlySpan<Char>, ReadOnlySpan<Char>, Boolean)

Appends a query parameter adding separator if required.

AppendQuery(String, String)

Appends a query parameter adding separator if required. Escapes the value.

AppendQuery(String, String, Boolean)

Appends a query parameter adding separator if required.

Reset(Uri)

Replaces values inside this instance with values provided in the value parameter.

ToString()

Returns a string representation of this RequestUriBuilder.

ToUri()

Gets the Uri instance constructed by the specified RequestUriBuilder instance.

Applies to