C# 클래스 Server.Request

파일 보기 프로젝트 열기: adrianrussell/MicroFrameworkWebServer 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
ProcessRequestHeader ( ) : void
Request ( IClientSocket client, char data ) : Microsoft.SPOT
Send404 ( ) : void

Send a Not Found response

SendFile ( string filePath ) : void

Sends a file back to the client

Assumes the application using this has checked whether it exists

SendResponse ( string response, string type = "text/html" ) : void

Send a response back to the client

비공개 메소드들

메소드 설명
DoesFileNameHaveExtentsion ( string filePath ) : bool
GetFileExtentsion ( string filePath ) : string
MapMIMEType ( string filePath, string type ) : string
NoBytesToRead ( int bytesRead ) : bool
ProcessRequestHeader ( char data ) : void
SendHeader ( string type, Stream inputStream ) : void
SendResponseFromFile ( Stream inputStream ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ProcessRequestHeader() 공개 메소드

public ProcessRequestHeader ( ) : void
리턴 void

Request() 공개 메소드

public Request ( IClientSocket client, char data ) : Microsoft.SPOT
client IClientSocket
data char
리턴 Microsoft.SPOT

Send404() 공개 메소드

Send a Not Found response
public Send404 ( ) : void
리턴 void

SendFile() 공개 메소드

Sends a file back to the client
Assumes the application using this has checked whether it exists
public SendFile ( string filePath ) : void
filePath string
리턴 void

SendResponse() 공개 메소드

Send a response back to the client
public SendResponse ( string response, string type = "text/html" ) : void
response string
type string
리턴 void