diff options
| author | Fuwn <[email protected]> | 2023-03-31 22:10:02 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-03-31 22:10:02 +0000 |
| commit | 30622ece082a951a975133f02a26a4709a9610e0 (patch) | |
| tree | dc06366cd07f1795fc9f2bf93a9d52b2b9f7bfea /src/response.rs | |
| parent | feat(carg): bump 0.2.2 -> 0.2.3 (diff) | |
| download | windmark-30622ece082a951a975133f02a26a4709a9610e0.tar.xz windmark-30622ece082a951a975133f02a26a4709a9610e0.zip | |
feat(response): macro-based responses
Diffstat (limited to 'src/response.rs')
| -rw-r--r-- | src/response.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/response.rs b/src/response.rs index 2da020f..455bf42 100644 --- a/src/response.rs +++ b/src/response.rs @@ -18,6 +18,8 @@ //! Content and response handlers +mod macros; + macro_rules! response { ($name:ident, $status:expr) => { pub fn $name<S>(content: S) -> Self |