C# Class Stumps.FluentStumpServerExtensions

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

Public Methods

Method 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 method

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.
return Stump

HandlesRequest() public static method

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.
return Stump

IsNotAProxy() public static method

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.
return IStumpsServer

IsProxyFor() public static method

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.
return IStumpsServer

IsProxyFor() public static method

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.
return IStumpsServer

RespondsWithHttp404() public static method

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.
return IStumpsServer

RespondsWithHttp503() public static method

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.
return IStumpsServer