mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
save headers for all intermediate redirects (#2677)
This commit is contained in:
parent
9c22961b6a
commit
70de8dd51d
4 changed files with 233 additions and 225 deletions
|
@ -75,6 +75,10 @@ pub fn invalid_address_syntax() -> ErrBox {
|
|||
StaticError(ErrorKind::InvalidInput, "invalid address syntax").into()
|
||||
}
|
||||
|
||||
pub fn too_many_redirects() -> ErrBox {
|
||||
StaticError(ErrorKind::TooManyRedirects, "too many redirects").into()
|
||||
}
|
||||
|
||||
pub trait GetErrorKind {
|
||||
fn kind(&self) -> ErrorKind;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue