C# Class org.GraphDefined.Vanaheimr.Hermod.HTTP.HTTPTools

HTTP tools.
Exibir arquivo Open project: Vanaheimr/Hermod Class Usage Examples

Public Methods

Method Description
MovedPermanently ( HTTPRequest HTTPRequest, String Location ) : HTTPResponse

Return a HTTP response redirecting to the given location permanently.

MovedTemporarily ( HTTPRequest HTTPRequest, String Location ) : HTTPResponse

Return a HTTP response redirecting to the given location temporarily.

Method Details

MovedPermanently() public static method

Return a HTTP response redirecting to the given location permanently.
public static MovedPermanently ( HTTPRequest HTTPRequest, String Location ) : HTTPResponse
HTTPRequest HTTPRequest The HTTP request.
Location String The location of the redirect.
return HTTPResponse

MovedTemporarily() public static method

Return a HTTP response redirecting to the given location temporarily.
public static MovedTemporarily ( HTTPRequest HTTPRequest, String Location ) : HTTPResponse
HTTPRequest HTTPRequest The HTTP request.
Location String The location of the redirect.
return HTTPResponse