Class RawPluginEndPoint
Represents a plugin web endpoint that handles a raw EmbedIO.IHttpContext.
Note: This requires that you reference the EmbedIO Nuget package.
Inherited Members
Namespace: Artemis.Core.Services
Assembly: Artemis.Core.dll
Syntax
public class RawPluginEndPoint : PluginEndPoint
Properties
RequestHandler
Gets or sets the handler used to handle incoming requests to this endpoint
Declaration
public Func<IHttpContext, Task> RequestHandler { get; }
Property Value
Type | Description |
---|---|
Func<IHttpContext, Task> |
Methods
ProcessRequest(IHttpContext)
Called whenever the end point has to process a request
Declaration
protected override Task ProcessRequest(IHttpContext context)
Parameters
Type | Name | Description |
---|---|---|
IHttpContext | context | The HTTP context of the request |
Returns
Type | Description |
---|---|
Task |
Overrides
SetAcceptType(string)
Sets the mime type this plugin end point accepts
Declaration
public void SetAcceptType(string type)
Parameters
Type | Name | Description |
---|---|---|
string | type |
SetReturnType(string)
Sets the mime type this plugin end point returns
Declaration
public void SetReturnType(string type)
Parameters
Type | Name | Description |
---|---|---|
string | type |