Microsoft.AspNetCore.Http.Extensions A helper class for constructing encoded Uris for use in headers and other Uris. Combines the given URI components into a string that is properly encoded for use in HTTP headers. The first portion of the request path associated with application root. The portion of the request path that identifies the requested resource. The query, if any. The fragment, if any. 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. http, https, etc. The host portion of the uri normally included in the Host header. This may include the port. The first portion of the request path associated with application root. The portion of the request path that identifies the requested resource. The query, if any. The fragment, if any. 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. The Uri to encode. Returns the combined components of the request URL in a fully escaped form suitable for use in HTTP headers and other HTTP operations. The request to assemble the uri pieces from. Returns the combined components of the request URL in a fully un-escaped form (except for the QueryString) suitable only for display. This format should not be used in HTTP headers or other HTTP operations. The request to assemble the uri pieces from. Provides extensions for HttpResponse exposing the SendFile extension. Sends the given file using the SendFile extension. The file. The . Sends the given file using the SendFile extension. The file. The offset in the file. The number of bytes to send, or null to send the remainder of the file. Sends the given file using the SendFile extension. The full path to the file. The . Sends the given file using the SendFile extension. The full path to the file. The offset in the file. The number of bytes to send, or null to send the remainder of the file.