Clean up wording

This commit is contained in:
Michael Lazar 2020-07-27 00:09:00 -04:00
parent 1e5be2b45a
commit dd6fcb4456
4 changed files with 5 additions and 5 deletions

View File

@ -21,8 +21,8 @@
#### Examples
- Added a new example that demonstrates how to use the new ``RateLimiter``
class (examples/rate_limit.py).
- Added an example that demonstrates how to use the new ``RateLimiter`` class
(examples/rate_limit.py).
### v0.5.0 (2020-07-14)

View File

@ -87,7 +87,7 @@ fileserver configuration:
--index-file FILE If a directory contains a file with this name, that file will be
served instead of auto-generating an index page (default: index.gmi)
--default-lang DEFAULT_LANG
A lang parameter that will be indicated in the response meta
A lang parameter that will be used for all text/gemini responses
(default: None)
--rate-limit RATE_LIMIT
Enable IP rate limiting, e.g. '60/5m' (60 requests per 5 minutes)

View File

@ -4,7 +4,7 @@ This example shows how you can implement rate limiting on a per-endpoint basis.
"""
from jetforce import GeminiServer, JetforceApplication, RateLimiter, Response, Status
# Apply a global rate limiter that will be applied to all requests
# Setup a global rate limiter that will be applied to all requests
global_rate_limiter = RateLimiter("100/m")
app = JetforceApplication(rate_limiter=global_rate_limiter)

View File

@ -94,7 +94,7 @@ group.add_argument(
)
group.add_argument(
"--default-lang",
help="A lang parameter that will be indicated in the response meta",
help="A lang parameter that will be used for all text/gemini responses",
default=None,
dest="default_lang",
)