klein icon indicating copy to clipboard operation
klein copied to clipboard

werkzeug + twisted.web

Results 167 klein issues
Sort by recently updated
recently updated
newest added

A lot of built-in types are annotated in epytext as code (`C{type}`) and perhaps should be links (`L{type}`).

documentation

Is there an option to set up a "default" route? Right now, a lot of frontend applications use HTML5 history mode for in-app navigation. This results in URL being replaced...

feature

In #359, @glyph [notes](https://github.com/twisted/klein/pull/359#discussion_r457891392): > The real problem here though appears to be that we are constructing a `KleinRequest` via adaptation - apparently for no good reason. Rather than lie...

bug

With Python3, the keys and values for `request.args` returned when submitting form data to an `app.route` are returned as bytes, not strings. ```bash 2020-06-29 23:11:10-0400 [-] (Pdb) {b'username': [b'irowell'], b'email':...

improvement

how to do somethings before a request like the before_request in Flask? I want to set some CORS headers.

feature

Given an `IDependencyInjector` for a type `A` and an `IDependencyInjector` for a type `B` which depends on an instance of `A` and a route that takes both injected parameters it's...

feature

I am seeing the error below in the twisted.log file for my Klein-based microservice. It looks as though there could be a race condition with the channel have being deleted...

bug

As seen in https://github.com/twisted/klein/pull/350 (and related ticket), `@style.route` has to be inside `@requirer.require`.

documentation

Per @glyph: `_decorators.modified` can have a more precise signature. See https://github.com/twisted/klein/pull/311#discussion_r427028139.

improvement

Per @glyph: We should probably define a `Protocol` that defines `__klein_bound__` (and `__call__` probably) so we can document it somewhere. See https://github.com/twisted/klein/pull/311#discussion_r427027246

improvement