Skip to content

Commit

Permalink
Merge pull request #15 from Basicprogrammer10/dev
Browse files Browse the repository at this point in the history
✨ afire 1.2.0
  • Loading branch information
connorslade authored Jun 25, 2022
2 parents f171098 + 2b040c8 commit 9d1dd37
Show file tree
Hide file tree
Showing 63 changed files with 2,094 additions and 1,968 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/target
*target
/testing
/examples/target
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 6 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[package]
name = "afire"
version = "1.1.0"
version = "1.2.0"
authors = ["Connor Slade <[email protected]>"]
edition = "2018"

repository = "https://github.com/Basicprogrammer10/afire"
documentation = "https://docs.rs/afire"
homepage = "https://connorcode.com/writing/afire"
documentation = "https://docs.rs/afire"
description = "🔥 A blazing fast web framework for Rust"
keywords = ["afire", "http", "WebFramework", "WebServer"]
categories = ["network-programming", "web-programming::http-server"]
exclude = [".github/", "SocialShare.*"]
license = "GPL-3.0"
license = "MIT"
readme = "README.md"

[lib]
Expand All @@ -24,26 +24,20 @@ default = [
"panic_handler",
"path_patterns",
"dynamic_resize",
"path_decode_url",
"ignore_trailing_path_slash"
"path_decode_url"
]

# Extensions
rate_limit = []
logging = []
serve_static = []

# Default On
cookies = []
panic_handler = []
path_patterns = []
dynamic_resize = []
path_decode_url = []
ignore_trailing_path_slash = []

# Other
extensions = []
tracing = []

[dev-dependencies]
# Enable rate_limit and logging features for examples
afire = { path = ".", features = ["rate_limit", "logging", "serve_static", "tracing"] }
afire = { path = ".", features = ["extensions", "tracing"] }
69 changes: 63 additions & 6 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,59 @@
# 1.2.0

June 24, 2022

- oh windows,,,
- Fix Path Traversal on windows
- Use AsRef<str> more instead of Display
- Add a serve path to Serve Static
- Serve index from serve path
- Remove the `ignore_trailing_path_slash` feature
- Redo Internal Error handling system
- Middleware use references to Requests and Responses and stuff
- Improve built-in serve_static middleware
- Re organize extension stuff
- RateLimit use RwLock
- Add Request ID Middleware
- Server Wide State
- Add Cache Middleware
- Remove insane build script
- When building http response only add Content-Length and default headers if they are not already present
- Add server state syste
- Improved Request Parsing
- Redo Error system
- Remove the requests raw_data feild
- Remove Request::body_string in favor of String::from_utf8()
- Fix HTTP parseing and genatation issues

# 1.1.0

- Update Path Matcher to support AnyAfter segments (**)
Apr 10, 2022

- Update Path Matcher to support AnyAfter segments (\*\*)
- Remove Test Example
- Add Paste Bin App Example
- Add SocketHandler struct to hold socket ineracting functions
- Add SocketHandler struct to hold socket interacting functions
- Fix Path Traversal Exploit O_O

# 1.0.0!

Mar 14, 2022

- Add ThreadPool Back!
- Tracing Feature
- Remove Middleware Interior Mutability by Default
- Make remove_address_port usable without Feature
- Add *end* middleware to run after sending a request
- Add _end_ middleware to run after sending a request
- Make use of end middleware on logger

# 0.4.0

Feb 19, 2022

- Make serve static types public
- Fix File Uploading stuff
- Add a Prelude for afire essentials
- Optimize HTTP parser *(saving nanoseconds!)*
- Optimize HTTP parser _(saving nanoseconds!)_
- More unit tests
- Middleware Error Handling!
- Make Route and Error Handler functions take closures
Expand All @@ -32,6 +65,8 @@

# 0.3.0

Jan 25, 2022 s

- Add content types
- Update Logger syntax
- Allow changing socket buffer size
Expand Down Expand Up @@ -60,12 +95,16 @@

# 0.2.2

Dec 04, 2021

- Remove Debug Print Left in...
- Small changes to features
- This is mostly about the Debug Print

# 0.2.1

Dec 04, 2021

- Only Build common::remove_address_port if logger or rate-limiter are enabled
- Make Header name / value Public
- Serve Static Middleware
Expand All @@ -81,11 +120,13 @@
- Store Raw Request data and Request body as `Vec<u8>`
- Fix Panic Handler feature compile problems
- Dont use an Option for Vec of default headers
- Fix Header Parseing
- Fix Header Parsing
- Add a `header` method on Request to get headers

# 0.2.0

Nov 04, 2021

- Response Overhaul, Now more like a Response Builder
- Update _every_ example with new syntax...
- Small improvement to Query parsing
Expand All @@ -97,10 +138,12 @@
- Update Readme in /examples
- Add a dynamic buffer resize feature
- Update Logger Middleware to be a builder
- Add Path param Example in 04_data
- Add Path parameter Example in 04_data

# 0.1.7

Oct 27, 2021

- Add Panic Message to Error Handel
- Add http.rs to move raw http parsing out of server.rs
- Start / Start Threaded returns Option
Expand All @@ -112,6 +155,8 @@

# 0.1.6

Oct 20, 2021

- Add Example for Logging
- Add Example for Rate Limiter
- Improve Rate limiter
Expand All @@ -130,6 +175,8 @@

# 0.1.5

Sep 17, 2021

- Add a route error handler
- Add `set_error_handler` fn to set the error handler
- Implement clone for more structs
Expand All @@ -146,20 +193,28 @@

# 0.1.4

Sep 05, 2021

- Allow responding with bytes, not just strings
- Add Serving Favoricon as example thing

# 0.1.3

Sep 03, 2021

- Add Support for query strings in paths
- Add More docs for Query

# 0.1.2

Sep 01, 2021

- Fix a bug where '.any' routes were not working

# 0.1.1

Aug 31, 2021

- Add Optional Rate limiter _beta_
- Update readme abit
- Copy new readme to lib.rs
Expand All @@ -173,4 +228,6 @@

# 0.1.0

Aug 21, 2021

- Base Code
Loading

0 comments on commit 9d1dd37

Please sign in to comment.