Microsoft.AspNetCore.Http.Extensions Asynchronously reads the bytes from the source stream and writes them to another stream. A task that represents the asynchronous copy operation. The stream from which the contents will be copied. The stream to which the contents of the current stream will be copied. The count of bytes to be copied. The token to monitor for cancellation requests. The default value is . Asynchronously reads the bytes from the source stream and writes them to another stream, using a specified buffer size. A task that represents the asynchronous copy operation. The stream from which the contents will be copied. The stream to which the contents of the current stream will be copied. The count of bytes to be copied. The size, in bytes, of the buffer. This value must be greater than zero. The default size is 4096. The token to monitor for cancellation requests. The default value is . 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. Separates the given absolute URI string into components. Assumes no PathBase. A string representation of the uri. http, https, etc. The host portion of the uri normally included in the Host header. This may include the port. 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 relative url 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.