code: def get_data_from_request():
      
      return {
          'request': {
              'url': '%s://%s%s' % (web.ctx['protocol'], web.ctx['host'], web.ctx['path']),
              'query_string': web.ctx.query,
              'method': web.ctx.method,
              'data': web.data(),
              'headers': dict(get_headers(web.ctx.environ)),
              'env': dict(get_environ(web.ctx.environ)),
          }
      }
docs: Returns request data extracted from web.ctx.