C# 클래스 Incog.Servers.HttpProcessor

Simple Hypertext Transfer Protocol (HTTP) request processor.
파일 보기 프로젝트 열기: SimWitty/Incog 1 사용 예제들

공개 메소드들

메소드 설명
HttpProcessor ( TcpClient socket, HttpServer server ) : System

Initializes a new instance of the HttpProcessor class.

Process ( ) : void

Process incoming requests.

WriteFailure ( ) : void

Write a HTTP failure (500).

WriteLine ( string value ) : void

Write a single line of ASCII text followed by the new line character.

WriteSuccess ( ) : void

Write an HTTP success (200).

비공개 메소드들

메소드 설명
ParseHeaders ( ) : void

Parse the headers.

ParseRequest ( ) : void

Parse the request to load the method, URL, and protocol.

ReadLine ( ) : string

Read the next line from the HTTP request.

메소드 상세

HttpProcessor() 공개 메소드

Initializes a new instance of the HttpProcessor class.
public HttpProcessor ( TcpClient socket, HttpServer server ) : System
socket System.Net.Sockets.TcpClient Pass in the client socket.
server HttpServer Pass in the HTTP server.
리턴 System

Process() 공개 메소드

Process incoming requests.
public Process ( ) : void
리턴 void

WriteFailure() 공개 메소드

Write a HTTP failure (500).
public WriteFailure ( ) : void
리턴 void

WriteLine() 공개 메소드

Write a single line of ASCII text followed by the new line character.
public WriteLine ( string value ) : void
value string The string in ASCII format.
리턴 void

WriteSuccess() 공개 메소드

Write an HTTP success (200).
public WriteSuccess ( ) : void
리턴 void