C# Class Electro.Handlers.BaseHttpHandler

Show file Open project: HackerDom/ructfe-2015

Public Methods

Method Description
Start ( ) : void

Protected Methods

Method Description
BaseHttpHandler ( string prefix ) : System
ProcessRequest ( HttpListenerContext context ) : void
WriteData ( HttpListenerContext context, byte data, string contentType ) : void
WriteString ( HttpListenerContext context, string msg ) : void

Private Methods

Method Description
Callback ( IAsyncResult result ) : void
Error ( HttpListenerContext context, HttpStatusCode status, string msg ) : void
Write ( HttpListenerContext context, byte data ) : void

Method Details

BaseHttpHandler() protected method

protected BaseHttpHandler ( string prefix ) : System
prefix string
return System

ProcessRequest() protected abstract method

protected abstract ProcessRequest ( HttpListenerContext context ) : void
context System.Net.HttpListenerContext
return void

Start() public method

public Start ( ) : void
return void

WriteData() protected static method

protected static WriteData ( HttpListenerContext context, byte data, string contentType ) : void
context System.Net.HttpListenerContext
data byte
contentType string
return void

WriteString() protected static method

protected static WriteString ( HttpListenerContext context, string msg ) : void
context System.Net.HttpListenerContext
msg string
return void