Skip to content

Commit

Permalink
Adding docs to the head of the handler file.
Browse files Browse the repository at this point in the history
  • Loading branch information
russ committed Oct 8, 2024
1 parent 52b2000 commit 786a303
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lucky/maximum_request_size_handler.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Allows a maximum request size to be set for incoming requests.
#
# Configure the max_size to the maximum size in bytes that you
# want to allow.
#
# ```
# Lucky::MaximumRequestSizeHandler.configure do |settings|
# settings.enabled = true
# settings.max_size = 1_048_576 # 1MB
# end
# ```

class Lucky::MaximumRequestSizeHandler
include HTTP::Handler

Expand Down

0 comments on commit 786a303

Please # to comment.