code: def handle(self, request, uri):
          
  
          # Convert the call over to Stack-In-A-Box
          method = request.method
          headers = CaseInsensitiveDict()
          request_headers = CaseInsensitiveDict()
          request_headers.update(request.headers)
          request.headers = request_headers
          stackinabox_result = StackInABox.call_into(method,
                                                     request,
                                                     uri,
                                                     headers)
  
          # reformat the result for easier use
          status_code, output_headers, body = stackinabox_result
  
          json_data = None
          text_data = None
          content_data = None
          body_data = None
  
          # if the body is a string-type...
          if isinstance(body, six.string_types):
              # Try to convert it to JSON
              text_data = body
              try:
                  json_data = json.dumps(text_data)
                  text_data = json_data
              except Exception:
                  json_data = None
                  text_data = body
  
          # if the body is binary, then it's the content
          elif isinstance(body, six.binary_type):
              content_data = body
  
          # by default, it's just body data
          else:
              # default to body data
              body_data = body
  
          # build the Python requests' Response object
          return requests_mock.response.create_response(
              request,
              headers=output_headers,
              status_code=status_code,
              body=body_data,
              json=json_data,
              text=text_data,
              content=content_data
          )
docs: Request handler interface.
  
          :param request: Python requests Request object
          :param uri: URI of the request