linkcheck.lc_cgi
Functions used by the WSGI script.
Functions
|
WSGI interface: start an URL check. |
|
Check form data. |
|
Validates the CGI form and checks the given links. |
|
Log environment and form. |
|
Encode given string in HTML encoding. |
|
Format standard error page. |
|
Get value with given key from WSGI form. |
|
Initialize a CGI configuration. |
|
Return host name of given URL. |
Get list of response headers in key-value form. |
|
|
Log message to WSGI error output. |
|
Start checking in background and write encoded output to out. |
Classes
Thread-safe unicode I/O class. |
Exceptions
Form related errors. |
- class linkcheck.lc_cgi.ThreadsafeIO[source]
Bases:
object
Thread-safe unicode I/O class.
Initialize buffer.
- linkcheck.lc_cgi.checkform(form, env)[source]
Check form data. throw exception on error Be sure to NOT print out any user-given data as HTML code, so use only plain strings as exception text.