Does Axum have HTTPS support? #1032
-
I was looking at this table and notices there is not HTTPS support in Axum, Is this true? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No that is not true, axum can be run over HTTPS. Check out the low-level-rustls and tls-rustls examples. axum is a bit special in that it doesn't come with its own HTTP server ( Generally speaking axum is compatible with any server that supports |
Beta Was this translation helpful? Give feedback.
No that is not true, axum can be run over HTTPS. Check out the low-level-rustls and tls-rustls examples.
axum is a bit special in that it doesn't come with its own HTTP server (
axum::Server
is just a re-export ofhyper::Server
). Hyper is generic over the underlying transport, ie it can run on anyAsyncRead + AsyncWrite
. That can be a plain HTTP stream or one that is encrypted.Generally speaking axum is compatible with any server that supports
tower::Service
.