From: Chandru <cha...@us...> - 2007-04-20 00:36:37
|
Update of /cvsroot/jungerl/jungerl/lib/ibrowse/doc In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv22115/doc Modified Files: ibrowse_lib.html Log Message: Optimised URL encoding. Removed dependency on inets by implementing base64 encoding/decoding in ibrowse itself. Index: ibrowse_lib.html =================================================================== RCS file: /cvsroot/jungerl/jungerl/lib/ibrowse/doc/ibrowse_lib.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ibrowse_lib.html 21 Mar 2007 00:36:09 -0000 1.2 +++ ibrowse_lib.html 20 Apr 2007 00:36:30 -0000 1.3 @@ -15,9 +15,11 @@ <table width="100%" border="1"><tr><td valign="top"><a href="#dec2hex-2">dec2hex/2</a></td><td>dec2hex taken from gtk.erl in std dist M = integer() -- number of hex digits required N = integer() -- the number to represent as hex.</td></tr> +<tr><td valign="top"><a href="#decode_base64-1">decode_base64/1</a></td><td>Implements the base64 decoding algorithm.</td></tr> <tr><td valign="top"><a href="#decode_rfc822_date-1">decode_rfc822_date/1</a></td><td/></tr> <tr><td valign="top"><a href="#drv_ue-1">drv_ue/1</a></td><td/></tr> <tr><td valign="top"><a href="#drv_ue-2">drv_ue/2</a></td><td/></tr> +<tr><td valign="top"><a href="#encode_base64-1">encode_base64/1</a></td><td>Implements the base64 encoding algorithm.</td></tr> <tr><td valign="top"><a href="#status_code-1">status_code/1</a></td><td>Given a status code, returns an atom describing the status code.</td></tr> <tr><td valign="top"><a href="#url_encode-1">url_encode/1</a></td><td>URL-encodes a string based on RFC 1738.</td></tr> </table> @@ -30,6 +32,11 @@ M = integer() -- number of hex digits required N = integer() -- the number to represent as hex</p> +<h3><a name="decode_base64-1">decode_base64/1</a></h3> +<p><tt>decode_base64(List::In) -> Out | <a href="#type-exit">exit({error, invalid_input})</a></tt> +<ul><li><tt>In = string() | binary()</tt></li><li><tt>Out = string() | binary()</tt></li></ul></p> +<p>Implements the base64 decoding algorithm. The output data type matches in the input data type.</p> + <h3><a name="decode_rfc822_date-1">decode_rfc822_date/1</a></h3> <tt>decode_rfc822_date(String) -> term() </tt> @@ -42,6 +49,11 @@ <tt>drv_ue(Str, Port) -> term() </tt> +<h3><a name="encode_base64-1">encode_base64/1</a></h3> +<p><tt>encode_base64(List::In) -> Out</tt> +<ul><li><tt>In = string() | binary()</tt></li><li><tt>Out = string() | binary()</tt></li></ul></p> +<p>Implements the base64 encoding algorithm. The output data type matches in the input data type.</p> + <h3><a name="status_code-1">status_code/1</a></h3> <p><tt>status_code(StatusCode::<a href="#type-status_code">status_code()</a>) -> StatusDescription</tt> <ul><li><tt><a name="type-status_code">status_code()</a> = string() | integer()</tt></li><li><tt>StatusDescription = atom()</tt></li></ul></p> |