Skip to content

Commit

Permalink
Added set_timeout and get_timeout methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey Ropan committed Jul 5, 2015
1 parent e60bd7e commit 5283232
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webkit_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,14 @@ def set_proxy(self, host = "localhost",
""" Sets a custom HTTP proxy to use for future requests. """
self.conn.issue_command("SetProxy", host, port, user, password)

def set_timeout(self, timeout):
""" Set timeout load page """
self.conn.issue_command("SetTimeout", timeout)

def get_timeout(self):
""" Get timeout load page """
return int(self.conn.issue_command("GetTimeout"))

def clear_proxy(self):
""" Resets custom HTTP proxy (use none in future requests). """
self.conn.issue_command("ClearProxy")
Expand Down

0 comments on commit 5283232

Please sign in to comment.