code: def can_handle(self, data):
          r
          try:
              requestline, _ = decode_from_bytes(data).split(CRLF, 1)
              method, path, version = self._parse_requestline(requestline)
          except ValueError:
              try:
                  return self == Mocket._last_entry
              except AttributeError:
                  return False
          uri = urlsplit(path)
          can_handle = uri.path == self.path and method == self.method
          if self._match_querystring:
              kw = dict(keep_blank_values=True)
              can_handle = can_handle and parse_qs(uri.query, **kw) == parse_qs(self.query, **kw)
          if can_handle:
              Mocket._last_entry = self
          return can_handle
docs: r"""
          >>> e = Entry('http://www.github.com/?bar=foo&foobar', Entry.GET, (Response(b'<html/>'),))
          >>> e.can_handle(b'GET /?bar=foo HTTP/1.1\r\nHost: github.com\r\nAccept-Encoding: gzip, deflate\r\nConnection: keep-alive\r\nUser-Agent: python-requests/2.7.0 CPython/3.4.3 Linux/3.19.0-16-generic\r\nAccept: */*\r\n\r\n')
          False
          >>> e = Entry('http://www.github.com/?bar=foo&foobar', Entry.GET, (Response(b'<html/>'),))
          >>> e.can_handle(b'GET /?bar=foo&foobar HTTP/1.1\r\nHost: github.com\r\nAccept-Encoding: gzip, deflate\r\nConnection: keep-alive\r\nUser-Agent: python-requests/2.7.0 CPython/3.4.3 Linux/3.19.0-16-generic\r\nAccept: */*\r\n\r\n')
          True