@classmethod<EOL><INDENT>def http(klass, url, interval, timeout=None, deregister=None, header=None):<DEDENT>
ret = {'<STR_LIT:http>': url, '<STR_LIT>': interval}<EOL>if timeout:<EOL><INDENT>ret['<STR_LIT>'] = timeout<EOL><DEDENT>if deregister:<EOL><INDENT>ret['<STR_LIT>'] = deregister<EOL><DEDENT>if header:<EOL><INDENT>ret['<STR_LIT>'] = header<EOL><DEDENT>return ret<EOL>
Peform a HTTP GET against *url* every *interval* (e.g. "10s") to peform
health check with an optional *timeout* and optional *deregister* after
which a failing service will be automatically deregistered. Optional
parameter *header* specifies headers sent in HTTP request. *header*
paramater is in form of map of lists of strings,
e.g. {"x-foo": ["bar", "baz"]}.