MCPcopy Create free account
hub / github.com/EasyIME/PIME / get

Method get

python/python3/tornado/test/web_test.py:683–691  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

681
682class HeaderInjectionHandler(RequestHandler):
683 def get(self):
684 try:
685 self.set_header("X-Foo", "foo\r\nX-Bar: baz")
686 raise Exception("Didn't get expected exception")
687 except ValueError as e:
688 if "Unsafe header value" in str(e):
689 self.finish(b"ok")
690 else:
691 raise
692
693
694class GetArgumentHandler(RequestHandler):

Callers

nothing calls this directly

Calls 2

set_headerMethod · 0.80
finishMethod · 0.45

Tested by

no test coverage detected