#NEWLINE# def _post_hook( self , msg , urls ) : #NEWLINE# #INDENT# body = json . dumps ( msg ) #NEWLINE# headers = { #NEWLINE# #INDENT# 'Content-Length' : str ( len ( body ) ) , #NEWLINE# 'Content-Type' : 'application/json' , #NEWLINE# #UNINDENT# } #NEWLINE# client = HTTPClient ( ) #NEWLINE# for url in urls : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# client . fetch ( url , method = 'POST' , headers = headers , body = body ) #NEWLINE# #UNINDENT# except HTTPError : #NEWLINE# #INDENT# pass