How to use the arms.app.resources.swallow.SwallowResource function in arms

To help you get started, we’ve selected a few arms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github uyamazak / oceanus / arms / app / resources / swallow.py View on Github external
pformat(req.access_route),
                                   pformat(req.context),
                                   pformat(req.headers),
                                   pformat(req.env),
                                   pformat(redis_result),
                                   pformat(self.r.keys()))
                         )

        else:
            # response 1px gif
            resp = resp_beacon_gif(resp)


if __name__ == "__main__":
    app = falcon.API()
    swallow = SwallowResource()
    app.add_route('/swallow', swallow)