C# Class ATMLUtilitiesLibrary.HttpProcessor

Show file Open project: UtrsSoftware/ATMLWorkBench Class Usage Examples

Public Properties

Property Type Description
httpHeaders System.Collections.Hashtable
http_method String
http_protocol_versionstring String
http_url String
outputStream System.IO.StreamWriter
socket System.Net.Sockets.TcpClient
srv HttpServer

Public Methods

Method Description
GetProperty ( String propertyName ) : String
HttpProcessor ( TcpClient s, HttpServer srv ) : System
handleGETRequest ( ) : void
handlePOSTRequest ( ) : void
parseRequest ( ) : void
process ( ) : void
readHeaders ( ) : void
writeFailure ( ) : void
writeSuccess ( string content_type = "text/html" ) : void

Private Methods

Method Description
streamReadLine ( Stream inputStream ) : string

Method Details

GetProperty() public method

public GetProperty ( String propertyName ) : String
propertyName String
return String

HttpProcessor() public method

public HttpProcessor ( TcpClient s, HttpServer srv ) : System
s System.Net.Sockets.TcpClient
srv HttpServer
return System

handleGETRequest() public method

public handleGETRequest ( ) : void
return void

handlePOSTRequest() public method

public handlePOSTRequest ( ) : void
return void

parseRequest() public method

public parseRequest ( ) : void
return void

process() public method

public process ( ) : void
return void

readHeaders() public method

public readHeaders ( ) : void
return void

writeFailure() public method

public writeFailure ( ) : void
return void

writeSuccess() public method

public writeSuccess ( string content_type = "text/html" ) : void
content_type string
return void

Property Details

httpHeaders public property

public Hashtable,System.Collections httpHeaders
return System.Collections.Hashtable

http_method public property

public String http_method
return String

http_protocol_versionstring public property

public String http_protocol_versionstring
return String

http_url public property

public String http_url
return String

outputStream public property

public StreamWriter,System.IO outputStream
return System.IO.StreamWriter

socket public property

public TcpClient,System.Net.Sockets socket
return System.Net.Sockets.TcpClient

srv public property

public HttpServer,ATMLUtilitiesLibrary srv
return HttpServer