Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​AspNetCore.​Http.​HttpResponseWritingExtensions
Assembly: Microsoft.AspNetCore.Http.Abstractions
Inheritance: object → HttpResponseWritingExtensions
Convenience methods for writing to the response.
Methods
WriteAsync​(HttpResponse response,
string text,
System.​Threading.​CancellationToken cancellationToken = null)
Writes the given text to the response body. UTF-8 encoding will be used.
Returns A task that represents the completion of the write operation.
response
The <see cref="T:Microsoft.AspNetCore.Http.HttpResponse" /> .
text
The text to write to the response.
cancellationToken
Notifies when request operations should be cancelled.
WriteAsync​(HttpResponse response,
string text,
System.​Text.​Encoding encoding,
System.​Threading.​CancellationToken cancellationToken = null)
Writes the given text to the response body using the given encoding.
Returns A task that represents the completion of the write operation.
response
The <see cref="T:Microsoft.AspNetCore.Http.HttpResponse" /> .
text
The text to write to the response.
encoding
The encoding to use.
cancellationToken
Notifies when request operations should be cancelled.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object