P.Page(HtmlParser) : class documentation

Part of Page View In Hierarchy

No class docstring
Line # Kind Name Docs
53 Method __init__ Undocumented
65 Method create_tabs_and_attribs Based on a list of tuples, create a hash-table with tagnames plus attribute names as keys.
77 Method rewrite_url Rewrite a matched URL attribute value snippet.
84 Method rewrite Undocumented
108 Method handle_tag Read and parse tag contents in blocks of the configured max_page_size. Rewrite them based on the tag type: script or style.
128 Method buffered_writer This function writes data to the output buffer and writes the output buffer to the client if necessary.
136 Method parsing_reader No summary
175 Method handle_attribute Undocumented
227 Method keep_reading No summary
261 Method parse_until_interesting Undocumented
286 Method write_output No summary
305 Method is_url_attribute Returns True if the attribute in the tag should contain a URL.
def __init__(self, config, ssl, reader, writer, remote_host):
Undocumented
def create_tabs_and_attribs(self):

Based on a list of tuples, create a hash-table with tagnames plus attribute names as keys.

def rewrite_url(self, m):

Rewrite a matched URL attribute value snippet.

def rewrite(self):
Undocumented
def handle_tag(self):

Read and parse tag contents in blocks of the configured max_page_size. Rewrite them based on the tag type: script or style.

def buffered_writer(self, s):

This function writes data to the output buffer and writes the output buffer to the client if necessary.

def parsing_reader(self, BLKSIZE):

This function is used to read a block of data from the server response and parse it until the end of the response or tag close. This function is used for the JSPage and CSSPage classes as reader and should not update the input buffer of the Page instance with data within <script> and <style> tags.

def handle_attribute(self):
Undocumented
def keep_reading(self, max_size, states):

Keep reading from the input stream in blocks until one of the requested states is reached or the maximum size is passed. Fill the input buffer with the data and return. Do not write data to the output buffer because this data is going to be rewritten. The first time in the loop, use the current input buffer and do not read any data yet.

def parse_until_interesting(self):
Undocumented
def write_output(self, final):

Write output buffer in BLKSIZE blocks to the client. If final is set, write everything, including the last block even if it is smaller than BLKSIZE. Remove written blocks from the output buffer.

def is_url_attribute(self, this_tag, this_attrib):

Returns True if the attribute in the tag should contain a URL.

API Documentation for SwiperProxy, generated by pydoctor at 2015-10-22 17:52:21.