NodeNetAsync.Net.Http.HttpResponse.Redirect C# (CSharp) Méthode

Redirect() public méthode

public Redirect ( string Url, HttpCode HttpCode ) : void
Url string
HttpCode HttpCode
Résultat void
		public void Redirect(string Url, HttpCode HttpCode)
		{
			if ((int)HttpCode < 300 || (int)HttpCode > 399) throw (new Exception("Invalid HTTP Code for Redirection : " + HttpCode));
			Headers["Location"] = Url;
			throw (new HttpException(HttpCode));
		}
	}