code: def init_request(self):
          
  
          #: Build the request
          builder = Request.Builder()
          builder.url(self.url)
  
          #: Set any headers
          for k, v in self.headers.items():
              builder.addHeader(k, v)
  
          #: Get the body or generate from the data given
          body = self.body
  
          if body:
              #: Create the request body
              media_type = MediaType(
                  __id__=MediaType.parse(self.content_type))
              request_body = RequestBody(
                  __id__=RequestBody.create(media_type, body))
              #: Set the request method
              builder.method(self.method, request_body)
          elif self.method in ['get', 'delete', 'head']:
              #: Set the method
              getattr(builder, self.method)()
          else:
              raise ValueError("Cannot do a '{}' request "
                               "without a body".format(self.method))
  
          #: Save the okhttp request
          self.request = Request(__id__=builder.build())
docs: Init the native request using the okhttp3.Request.Builder