C# Класс Stumps.FluentStumpServerExtensions

A class that provides a set of Fluent extension methods to objects inheriting from the T:Stumps.IStumpsServer interface.
Показать файл Открыть проект

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

Метод Описание
HandlesRequest ( this server ) : Stump

Asserts that the T:Stumps.IStumpsServer will handle certain HTTP with a T:Stumps.Stump.

HandlesRequest ( this server, string stumpId ) : Stump

Asserts that the T:Stumps.IStumpsServer will handle certain HTTP with a T:Stumps.Stump.

IsNotAProxy ( this server ) : IStumpsServer

Asserts that the T:Stumps.IStumpsServer should not redirect traffic to a remote HTTP server.

IsProxyFor ( this server, Uri remoteServer ) : IStumpsServer

Asserts that the T:Stumps.IStumpsServer should redirect traffic to a specified remote HTTP server.

IsProxyFor ( this server, string remoteServerUrl ) : IStumpsServer

Asserts that the T:Stumps.IStumpsServer should redirect traffic to a specified remote HTTP server.

RespondsWithHttp404 ( this server ) : IStumpsServer

Asserts that the T:Stumps.IStumpsServer should return an HTTP 404 error message for requests that cannot be handled.

RespondsWithHttp503 ( this server ) : IStumpsServer

Asserts that the T:Stumps.IStumpsServer should return an HTTP 503 error message for requests that cannot be handled.

Описание методов

HandlesRequest() публичный статический Метод

Asserts that the T:Stumps.IStumpsServer will handle certain HTTP with a T:Stumps.Stump.
is null.
public static HandlesRequest ( this server ) : Stump
server this The that is processing incomming HTTP requests.
Результат Stump

HandlesRequest() публичный статический Метод

Asserts that the T:Stumps.IStumpsServer will handle certain HTTP with a T:Stumps.Stump.
is null.
public static HandlesRequest ( this server, string stumpId ) : Stump
server this The that is processing incomming HTTP requests.
stumpId string The unique identifier for the being created.
Результат Stump

IsNotAProxy() публичный статический Метод

Asserts that the T:Stumps.IStumpsServer should not redirect traffic to a remote HTTP server.
is null.
public static IsNotAProxy ( this server ) : IStumpsServer
server this The that is processing incomming HTTP requests.
Результат IStumpsServer

IsProxyFor() публичный статический Метод

Asserts that the T:Stumps.IStumpsServer should redirect traffic to a specified remote HTTP server.
is null.
public static IsProxyFor ( this server, Uri remoteServer ) : IStumpsServer
server this The that is processing incomming HTTP requests.
remoteServer System.Uri The for the remote HTTP server.
Результат IStumpsServer

IsProxyFor() публичный статический Метод

Asserts that the T:Stumps.IStumpsServer should redirect traffic to a specified remote HTTP server.
is null.
public static IsProxyFor ( this server, string remoteServerUrl ) : IStumpsServer
server this The that is processing incomming HTTP requests.
remoteServerUrl string The URL for the remote HTTP server.
Результат IStumpsServer

RespondsWithHttp404() публичный статический Метод

Asserts that the T:Stumps.IStumpsServer should return an HTTP 404 error message for requests that cannot be handled.
is null.
public static RespondsWithHttp404 ( this server ) : IStumpsServer
server this The that is processing incomming HTTP requests.
Результат IStumpsServer

RespondsWithHttp503() публичный статический Метод

Asserts that the T:Stumps.IStumpsServer should return an HTTP 503 error message for requests that cannot be handled.
is null.
public static RespondsWithHttp503 ( this server ) : IStumpsServer
server this The that is processing incomming HTTP requests.
Результат IStumpsServer