diff options
| author | Fuwn <[email protected]> | 2026-02-20 14:23:16 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-20 14:23:16 +0000 |
| commit | 125e37558b02bb33892608ee1bd6fb1088c1cb23 (patch) | |
| tree | 2527eac50dc58ef831adaf76d4197b27f7215c32 /examples | |
| parent | chore: Bump version patch to v0.4.2 (diff) | |
| download | windmark-125e37558b02bb33892608ee1bd6fb1088c1cb23.tar.xz windmark-125e37558b02bb33892608ee1bd6fb1088c1cb23.zip | |
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/async.rs | 17 | ||||
| -rw-r--r-- | examples/async_stateful_module.rs | 17 | ||||
| -rw-r--r-- | examples/binary.rs | 17 | ||||
| -rw-r--r-- | examples/callbacks.rs | 17 | ||||
| -rw-r--r-- | examples/certificate.rs | 17 | ||||
| -rw-r--r-- | examples/default_logger.rs | 17 | ||||
| -rw-r--r-- | examples/empty.rs | 17 | ||||
| -rw-r--r-- | examples/error_handler.rs | 17 | ||||
| -rw-r--r-- | examples/fix_path.rs | 17 | ||||
| -rw-r--r-- | examples/input.rs | 17 | ||||
| -rw-r--r-- | examples/mime.rs | 17 | ||||
| -rw-r--r-- | examples/parameters.rs | 17 | ||||
| -rw-r--r-- | examples/partial.rs | 17 | ||||
| -rw-r--r-- | examples/query.rs | 17 | ||||
| -rw-r--r-- | examples/responses.rs | 17 | ||||
| -rw-r--r-- | examples/simple_async_std.rs | 17 | ||||
| -rw-r--r-- | examples/simple_tokio.rs | 17 | ||||
| -rw-r--r-- | examples/stateful_module.rs | 17 | ||||
| -rw-r--r-- | examples/stateless_module.rs | 17 | ||||
| -rw-r--r-- | examples/struct_router.rs | 17 |
20 files changed, 0 insertions, 340 deletions
diff --git a/examples/async.rs b/examples/async.rs index f2674f0..d7fe6f5 100644 --- a/examples/async.rs +++ b/examples/async.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example async --features response-macros` #[windmark::main] diff --git a/examples/async_stateful_module.rs b/examples/async_stateful_module.rs index e19eb69..53d88be 100644 --- a/examples/async_stateful_module.rs +++ b/examples/async_stateful_module.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example async_stateful_module --features response-macros` use windmark::{context::HookContext, router::Router}; diff --git a/examples/binary.rs b/examples/binary.rs index 3a86c17..9496810 100644 --- a/examples/binary.rs +++ b/examples/binary.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example binary --features response-macros` //! //! Optionally, you can run this example with the `auto-deduce-mime` feature diff --git a/examples/callbacks.rs b/examples/callbacks.rs index 9d4acc1..76014d5 100644 --- a/examples/callbacks.rs +++ b/examples/callbacks.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example callbacks` use windmark::context::HookContext; diff --git a/examples/certificate.rs b/examples/certificate.rs index 6cd6def..6c3e1d0 100644 --- a/examples/certificate.rs +++ b/examples/certificate.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example certificate --features response-macros` use windmark::response::Response; diff --git a/examples/default_logger.rs b/examples/default_logger.rs index f7d5eb1..7d09b0a 100644 --- a/examples/default_logger.rs +++ b/examples/default_logger.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example default_logger --features logger,response-macros` #[windmark::main] diff --git a/examples/empty.rs b/examples/empty.rs index 893fd2b..a1b5d67 100644 --- a/examples/empty.rs +++ b/examples/empty.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example empty` #[windmark::main] diff --git a/examples/error_handler.rs b/examples/error_handler.rs index 93aa9c7..c05f070 100644 --- a/examples/error_handler.rs +++ b/examples/error_handler.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example error_handler` use windmark::response::Response; diff --git a/examples/fix_path.rs b/examples/fix_path.rs index f0be8f7..fc87476 100644 --- a/examples/fix_path.rs +++ b/examples/fix_path.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example fix_path --features response-macros` use windmark::router_option::RouterOption; diff --git a/examples/input.rs b/examples/input.rs index e8f3111..10add0b 100644 --- a/examples/input.rs +++ b/examples/input.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example input` use windmark::{context::RouteContext, response::Response}; diff --git a/examples/mime.rs b/examples/mime.rs index 93ebabb..b61c844 100644 --- a/examples/mime.rs +++ b/examples/mime.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example mime` #[windmark::main] diff --git a/examples/parameters.rs b/examples/parameters.rs index 82a61a5..153e64a 100644 --- a/examples/parameters.rs +++ b/examples/parameters.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example parameters --features response-macros` use windmark::success; diff --git a/examples/partial.rs b/examples/partial.rs index d49256a..3bf60b0 100644 --- a/examples/partial.rs +++ b/examples/partial.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example partial` #[windmark::main] diff --git a/examples/query.rs b/examples/query.rs index f144795..da2941b 100644 --- a/examples/query.rs +++ b/examples/query.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example input --features response-macros` #[windmark::main] diff --git a/examples/responses.rs b/examples/responses.rs index 3cb996a..656c734 100644 --- a/examples/responses.rs +++ b/examples/responses.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example responses --features response-macros` use windmark::success; diff --git a/examples/simple_async_std.rs b/examples/simple_async_std.rs index 75cd66e..98d2aff 100644 --- a/examples/simple_async_std.rs +++ b/examples/simple_async_std.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example simple_async_std --features async-std` #[windmark::main] diff --git a/examples/simple_tokio.rs b/examples/simple_tokio.rs index ec64c49..8da902e 100644 --- a/examples/simple_tokio.rs +++ b/examples/simple_tokio.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example simple_tokio --features tokio` #[windmark::main] diff --git a/examples/stateful_module.rs b/examples/stateful_module.rs index 73b7663..2ff698c 100644 --- a/examples/stateful_module.rs +++ b/examples/stateful_module.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example stateful_module --features response-macros` use windmark::{context::HookContext, router::Router}; diff --git a/examples/stateless_module.rs b/examples/stateless_module.rs index f747aac..5eaff87 100644 --- a/examples/stateless_module.rs +++ b/examples/stateless_module.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example stateless_module` use windmark::{response::Response, router::Router}; diff --git a/examples/struct_router.rs b/examples/struct_router.rs index d95b76f..2dbbb8d 100644 --- a/examples/struct_router.rs +++ b/examples/struct_router.rs @@ -1,20 +1,3 @@ -// This file is part of Windmark <https://github.com/gemrest/windmark>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - //! `cargo run --example struct_router` use rossweisse::route; |