C# Класс Server.Request

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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