• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Web
      • CaseHandlingUriBuilder
      • CaseHandlingUriBuilder.CaseHandling
      • CommandHandling
      • ExifOrientationUtilities
      • Format
      • FormatCommand
      • FormatUtilities
      • FormattedImage
      • HMACUtilities
      • ImageCacheMetadata
      • ImageMetadata
      • RequestAuthorizationUtilities
      • Resampler
      • ResamplerCommand
    • SixLabors.ImageSharp.Web.Caching
      • ICacheHash
      • ICacheKey
      • IImageCache
      • LegacyV1CacheKey
      • PhysicalFileSystemCache
      • PhysicalFileSystemCacheOptions
      • SHA256CacheHash
      • UriAbsoluteCacheKey
      • UriAbsoluteLowerInvariantCacheKey
      • UriRelativeCacheKey
      • UriRelativeLowerInvariantCacheKey
    • SixLabors.ImageSharp.Web.Commands
      • CommandCollection
      • CommandCollectionExtensions
      • CommandParser
      • IRequestParser
      • PresetOnlyQueryCollectionRequestParser
      • PresetOnlyQueryCollectionRequestParserOptions
      • QueryCollectionRequestParser
    • SixLabors.ImageSharp.Web.Commands.Converters
      • ArrayConverter<T>
      • ColorConverter
      • EnumConverter
      • ICommandConverter
      • ICommandConverter<T>
      • IntegralNumberConverter<T>
      • ListConverter<T>
      • SimpleCommandConverter<T>
    • SixLabors.ImageSharp.Web.DependencyInjection
      • ApplicationBuilderExtensions
      • IImageSharpBuilder
      • ImageSharpBuilderExtensions
      • ServiceCollectionExtensions
    • SixLabors.ImageSharp.Web.Middleware
      • ImageCommandContext
      • ImageProcessingContext
      • ImageSharpMiddleware
      • ImageSharpMiddlewareOptions
    • SixLabors.ImageSharp.Web.Processors
      • AutoOrientWebProcessor
      • BackgroundColorWebProcessor
      • FormatWebProcessor
      • IImageWebProcessor
      • QualityWebProcessor
      • ResizeWebProcessor
    • SixLabors.ImageSharp.Web.Providers
      • FileProviderImageProvider
      • IImageProvider
      • PhysicalFileSystemProvider
      • PhysicalFileSystemProviderOptions
      • ProcessingBehavior
      • WebRootImageProvider
    • SixLabors.ImageSharp.Web.Resolvers
      • FileProviderImageResolver
      • IImageCacheResolver
      • IImageResolver
      • PhysicalFileSystemCacheResolver
    • SixLabors.ImageSharp.Web.Synchronization
      • AsyncKeyLock<TKey>
      • AsyncKeyReaderWriterLock<TKey>
      • AsyncLock
      • AsyncReaderWriterLock
      • RefCountedConcurrentDictionary<TKey, TValue>
    • SixLabors.ImageSharp.Web.TagHelpers
      • HmacTokenTagHelper
      • ImageTagHelper

    Class CaseHandlingUriBuilder

    Optimized helper methods for generating encoded Uris from URI components. Much of this code has been adapted from the MIT licensed .NET runtime.

    Inheritance
    object
    CaseHandlingUriBuilder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SixLabors.ImageSharp.Web
    Assembly: SixLabors.ImageSharp.Web.dll
    Syntax
    public static class CaseHandlingUriBuilder

    Methods

    | Edit this page View Source

    BuildAbsolute(CaseHandling, HostString, PathString, PathString, QueryString)

    Combines the given URI components into a string that is properly encoded for use in HTTP headers. Note that unicode in the HostString will be encoded as punycode and the scheme is not included in the result.

    Declaration
    public static string BuildAbsolute(CaseHandlingUriBuilder.CaseHandling handling, HostString host, PathString pathBase = default, PathString path = default, QueryString query = default)
    Parameters
    Type Name Description
    CaseHandlingUriBuilder.CaseHandling handling

    Determines case handling for the result. query is always converted to invariant lowercase.

    HostString host

    The host portion of the uri normally included in the Host header. This may include the port.

    PathString pathBase

    The first portion of the request path associated with application root.

    PathString path

    The portion of the request path that identifies the requested resource.

    QueryString query

    The query, if any.

    Returns
    Type Description
    string

    The combined URI components, properly encoded for use in HTTP headers.

    | Edit this page View Source

    BuildAbsolute(CaseHandling, string, HostString, PathString, PathString, QueryString)

    Combines the given URI components into a string that is properly encoded for use in HTTP headers. Note that unicode in the HostString will be encoded as punycode.

    Declaration
    public static string BuildAbsolute(CaseHandlingUriBuilder.CaseHandling handling, string scheme, HostString host, PathString pathBase = default, PathString path = default, QueryString query = default)
    Parameters
    Type Name Description
    CaseHandlingUriBuilder.CaseHandling handling

    Determines case handling for the result. query is always converted to invariant lowercase.

    string scheme

    http, https, etc.

    HostString host

    The host portion of the uri normally included in the Host header. This may include the port.

    PathString pathBase

    The first portion of the request path associated with application root.

    PathString path

    The portion of the request path that identifies the requested resource.

    QueryString query

    The query, if any.

    Returns
    Type Description
    string

    The combined URI components, properly encoded for use in HTTP headers.

    | Edit this page View Source

    BuildRelative(CaseHandling, PathString, PathString, QueryString)

    Combines the given URI components into a string that is properly encoded for use in HTTP headers.

    Declaration
    public static string BuildRelative(CaseHandlingUriBuilder.CaseHandling handling, PathString pathBase = default, PathString path = default, QueryString query = default)
    Parameters
    Type Name Description
    CaseHandlingUriBuilder.CaseHandling handling

    Determines case handling for the result. query is always converted to invariant lowercase.

    PathString pathBase

    The first portion of the request path associated with application root.

    PathString path

    The portion of the request path that identifies the requested resource.

    QueryString query

    The query, if any.

    Returns
    Type Description
    string

    The combined URI components, properly encoded for use in HTTP headers.

    | Edit this page View Source

    Encode(CaseHandling, string)

    Generates a string from the given absolute or relative Uri that is appropriately encoded for use in HTTP headers. Note that a unicode host name will be encoded as punycode.

    Declaration
    public static string Encode(CaseHandlingUriBuilder.CaseHandling handling, string uri)
    Parameters
    Type Name Description
    CaseHandlingUriBuilder.CaseHandling handling

    Determines case handling for the result.

    string uri

    The Uri to encode.

    Returns
    Type Description
    string

    The encoded string version of uri.

    | Edit this page View Source

    Encode(CaseHandling, Uri)

    Generates a string from the given absolute or relative Uri that is appropriately encoded for use in HTTP headers. Note that a unicode host name will be encoded as punycode.

    Declaration
    public static string Encode(CaseHandlingUriBuilder.CaseHandling handling, Uri uri)
    Parameters
    Type Name Description
    CaseHandlingUriBuilder.CaseHandling handling

    Determines case handling for the result.

    Uri uri

    The Uri to encode.

    Returns
    Type Description
    string

    The encoded string version of uri.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX