WebDavExtensions SendSimpleResponse Method WebDAV#
Sends a simple response with a specified HTTP status code but no content.

Namespace: WebDAVSharp.Server
Assembly: WebDAVSharp.Server (in WebDAVSharp.Server.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void SendSimpleResponse(
	this IHttpListenerContext context,
	HttpStatusCode statusCode = HttpStatusCode.OK
)

Parameters

context
Type: WebDAVSharp.Server.Adapters IHttpListenerContext
The IHttpListenerContext to send the response through.
statusCode (Optional)
Type: System.Net HttpStatusCode
The HTTP status code for the response.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IHttpListenerContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptioncontext
ArgumentNullExceptioncontext is null.
See Also