Writing excellent Twisted web Resources
问题 I wrote my very first Twisted 10.1.0 web Resource and I am seeking for feedback, because I feel this isn't exactly following the best practice and may contain newbies bugs. The resource responds to /?url=http://www.foo.baz/abc123 and relies on a service that returns a dict . If anything goes wrong (e.g., invalid or non-existing url , then a 400 is returned). Any comment? Anything to fix, to improve class ProcessedUrl(resource.Resource): isLeaf = True def __init__(self, service): resource