'Sets up the timeout for the request.'

def set_timeout(self, timeout_in_seconds):

    timeout_in_ms = int((timeout_in_seconds * 1000))
    _WinHttpRequest._SetTimeouts(self, 0, timeout_in_ms, timeout_in_ms, timeout_in_ms)
