This checks for the version of the request. set_version() checks for a couple of things and stores whether it's a 1.1 request or a 2.0 request and stores that number in $this->request_version.

Version 1.1 requests (in the libaries I've seen) send a "version" string instead of JSONRPC.