C# Class Stumps.FluentStumpServerExtensions

A class that provides a set of Fluent extension methods to objects inheriting from the T:Stumps.IStumpsServer interface.
Afficher le fichier Open project: Cayan-LLC/stumps

Méthodes publiques

Méthode Description
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.

Method Details

HandlesRequest() public static méthode

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.
Résultat Stump

HandlesRequest() public static méthode

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.
Résultat Stump

IsNotAProxy() public static méthode

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.
Résultat IStumpsServer

IsProxyFor() public static méthode

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.
Résultat IStumpsServer

IsProxyFor() public static méthode

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.
Résultat IStumpsServer

RespondsWithHttp404() public static méthode

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.
Résultat IStumpsServer

RespondsWithHttp503() public static méthode

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.
Résultat IStumpsServer