Add detect method, http request class