Create WHTTPHeaders by the given code. If code has 'Set-Cookie' headers, that headers are
		parsed, data are stored in internal cookie jar. At the end of parsing 'Set-Cookie' headers are
		removed from the result

		:param http_code: HTTP code to parse
		:return: WHTTPHeaders

def import_headers(cls, http_code):
		""" Create WHTTPHeaders by the given code. If code has 'Set-Cookie' headers, that headers are
		parsed, data are stored in internal cookie jar. At the end of parsing 'Set-Cookie' headers are
		removed from the result

		:param http_code: HTTP code to parse
		:return: WHTTPHeaders
		"""
		headers = WHTTPHeaders()
		message = email.message_from_file(StringIO(http_code))
		for header_name, header_value in message.items():
			headers.add_headers(header_name, header_value)

		cookie_header = headers.get_headers('Set-Cookie')
		if cookie_header is not None:
			for cookie_string in cookie_header:
				for single_cookie in WHTTPCookieJar.import_header_text(cookie_string):
					headers.set_cookie_jar().add_cookie(single_cookie)
			headers.remove_headers('Set-Cookie')

		return headers