def _req_body_property():
 def getter(self):
  body = self.environ['wsgi.input'].read()
  self.environ['wsgi.input'] = StringIO(body)
  return body
 def setter(self, value):
  self.environ['wsgi.input'] = StringIO(value)
  self.environ['CONTENT_LENGTH'] = str(len(value))
 return property(getter, setter, doc='Get and set the request body str')

def _req_body_property ( ) : def getter ( self ) : body = self . environ [ 'wsgi.input' ] . read ( ) self . environ [ 'wsgi.input' ] = StringIO ( body ) return body def setter ( self , value ) : self . environ [ 'wsgi.input' ] = StringIO ( value ) self . environ [ 'CONTENT_LENGTH' ] = str ( len ( value ) ) return property ( getter , setter , doc = 'Get and set the request body str' )
set and retrieve the request .