1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

custom future for SendError service

This commit is contained in:
Nikolay Kim
2019-04-11 15:12:23 -07:00
parent d86567fbdc
commit 94d7a7f873
3 changed files with 39 additions and 109 deletions

View File

@ -153,6 +153,10 @@ impl ResponseError for TimerError {}
/// `InternalServerError` for `SslError`
impl ResponseError for openssl::ssl::Error {}
#[cfg(feature = "ssl")]
/// `InternalServerError` for `SslError`
impl ResponseError for openssl::ssl::HandshakeError<tokio_tcp::TcpStream> {}
/// Return `BAD_REQUEST` for `de::value::Error`
impl ResponseError for DeError {
fn error_response(&self) -> Response {