<s> from module import AbstractModule <EOL> class SampleModule ( AbstractModule ) : <EOL> def handle_request ( self , request , ** kwargs ) : <EOL> headers = self . getAllHeaders ( ) <EOL> print headers <EOL> self . setHeader ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> print self . getHeader ( '<STR_LIT>' ) <EOL> self . setHeader ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> if self . hasHeader ( '<STR_LIT>' ) : <EOL> self . removeHeader ( '<STR_LIT>' ) <EOL> protocol = self . getProtocol ( ) <EOL> print protocol <EOL> self . setProtocol ( '<STR_LIT>' ) <EOL> method = self . getMethod ( ) <EOL> print method <EOL> self . setMethod ( '<STR_LIT>' ) <EOL> uri = self . getURI ( ) <EOL> print uri <EOL> content = self . getContent ( ) <EOL> print content <EOL> self . setContent ( '<STR_LIT>' ) <EOL> def handle_response ( self , response , ** kwargs ) : <EOL> headers = self . getAllHeaders ( ) <EOL> print headers <EOL> self . setHeader ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> print self . getHeader ( '<STR_LIT>' ) <EOL> self . setHeader ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> if self . hasHeader ( '<STR_LIT>' ) : <EOL> self . removeHeader ( '<STR_LIT>' ) <EOL> protocol = self . getProtocol ( ) <EOL> print protocol <EOL> self . setProtocol ( '<STR_LIT>' ) <EOL> status_code = self . getStatusCode ( ) <EOL> print status_code <EOL> status_desc = self . getStatusDescription ( ) <EOL> print status_desc <EOL> content = self . getContent ( ) <EOL> print content <EOL> self . setContent ( '<STR_LIT>' ) <EOL> sample_module = SampleModule ( ) </s>
