The OpenD Programming Language

Redirection

You can return this from WebObject subclasses for redirections.

(though note the static types means that class must ALWAYS redirect if you return this directly. You might want to return MultipleResponses if it can be conditional)

version(with_breaking_cgi_features)
struct Redirection {}

Members

Variables

code
int code;

The HTTP code to return.

to
string to;

The URL to redirect to.

Meta