mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Write some more docs
This commit is contained in:
@@ -160,6 +160,7 @@ where
|
||||
/// An HTML response.
|
||||
///
|
||||
/// Will automatically get `Content-Type: text/html`.
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct Html<T>(pub T);
|
||||
|
||||
impl<T> IntoResponse for Html<T>
|
||||
@@ -198,6 +199,7 @@ where
|
||||
/// "application/json",
|
||||
/// );
|
||||
/// ```
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct Json<T>(pub T);
|
||||
|
||||
impl<T> IntoResponse for Json<T>
|
||||
|
||||
Reference in New Issue
Block a user