Table of Contents

Class RawPluginEndPoint

Namespace
Artemis.Core.Services
Assembly
Artemis.Core.dll

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
object
RawPluginEndPoint
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

Func<IRequest, Task<IResponse>>

Methods

ProcessRequest(IRequest)

Called whenever the end point has to process a request

protected override Task<IResponse> ProcessRequest(IRequest request)

Parameters

request IRequest

The 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

type ContentType

SetReturnType(ContentType)

Sets the mime type this plugin end point returns

public void SetReturnType(ContentType type)

Parameters

type ContentType