Class RawPluginEndPoint
Represents a plugin web endpoint that handles a raw IHttpContext.
Note: This requires that you reference the EmbedIO Nuget package.
public class RawPluginEndPoint : PluginEndPoint
- Inheritance
-
objectRawPluginEndPoint
- Inherited Members
Properties
RequestHandler
Gets or sets the handler used to handle incoming requests to this endpoint
public Func<IRequest, Task<IResponse>> RequestHandler { get; }
Property Value
Methods
ProcessRequest(IRequest)
Called whenever the end point has to process a request
protected override Task<IResponse> ProcessRequest(IRequest request)
Parameters
requestIRequestThe HTTP context of the request
Returns
- Task<IResponse>
SetAcceptType(ContentType)
Sets the mime type this plugin end point accepts
public void SetAcceptType(ContentType type)
Parameters
typeContentType
SetReturnType(ContentType)
Sets the mime type this plugin end point returns
public void SetReturnType(ContentType type)
Parameters
typeContentType