parameters: (self)
return_statement: return url_encoded
docstring: Retrieves the message in encoded form
docstring_summary: Retrieves the message in encoded form
docstring_tokens: Retrieves the message in encoded form
function: def get_encoded_message(self):
          """Retrieves the message in encoded form"""
          if self.compression:
              message = zlib.compress(self.raw_message)[2:-4]
          else:
              message = self.raw_message
  
          base64_encoded = message.encode('base64')
          url_encoded = urllib.quote(base64_encoded)
  
          return url_encoded
function_tokens: def get_encoded_message ( self ) : if self . compression : message = zlib . compress ( self . raw_message ) [ 2 : - 4 ] else : message = self . raw_message base64_encoded = message . encode ( 'base64' ) url_encoded = urllib . quote ( base64_encoded ) return url_encoded