Rouver

Latest version: v2.6.3

Safety actively analyzes 628924 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 10

0.10.1

API Additions

- `rouver.test`: Add `TestRequest.set_env_var()` and
`TestRequest.set_header()`.
- `rouver.test`: Add `TestResponse.assert_header_not_set()`,
`assert_content_type()`, `assert_see_other()`, and
`assert_temporary_redirect()`.

0.10.0

API Additions

- `rouver.test`: New WSGI testing module.
- `rouver.response`: `created_at()`, `created_as_json()`,
`temporary_redirect()`, and `see_also()` now take an optional
`extra_headers` argument.

Improvements

- `rouver.types`: Replace `StartResponse`'s argument types with `...`
`start_response()` takes either two or three arguments. This can not
be modelled using type hints.

0.9.0

API-Incompatible Changes

- `rouver.response`: `created_at()`, `created_as_json()`,
`temporary_redirect()`, and `see_other()` now treat URLs without a
leading slash as relative to the request path.

Improvements

- `rouver.html`: Replace `—` with `&x2014;` for improved
compatibility with XML parsers.
- `rouver.response`: `created_at()`, `created_as_json()`,
`temporary_redirect()`, and `see_other()` now support absolute URLs.

0.8.4

Add `py.typed` file to package `rouver` to enable type checking.

0.8.3

API Additions

- `rouver.handler`: Add `content_type` argument to
`RouteHandlerBase.respond()`.

0.8.2

API Additions

- `rouver.response`: Add `content_type` argument to `respond()`.

Bug Fixes

- `rouver.args`: Raise `BadRequest` when a PATCH request has a wrong
content type.

Page 6 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.