Difference between revisions of "Unit HTTP"

From Ultibo.org
Jump to: navigation, search
Line 68: Line 68:
 
<br />
 
<br />
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP date constants''' <code> HTTP_DATE_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP date''' <code> HTTP_DATE_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 90: Line 90:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP client constants''' <code> HTTP_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP client''' <code> HTTP_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 113: Line 113:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP server constants ''' <code> HTTP_SERVER_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP server''' <code> HTTP_SERVER_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 124: Line 124:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP protocol constants''' <code> HTTP_PROTOCOL_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP protocol''' <code> HTTP_PROTOCOL_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 149: Line 149:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP method constants''' <code> HTTP_METHOD_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP method''' <code> HTTP_METHOD_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 210: Line 210:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP version constants''' <code> HTTP_VERSION_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP version''' <code> HTTP_VERSION_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 240: Line 240:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP encoding constants''' <code> HTTP_ENCODING_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP encoding''' <code> HTTP_ENCODING_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 283: Line 283:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP general header constants''' <code> HTTP_GENERAL_HEADER_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP general header''' <code> HTTP_GENERAL_HEADER_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 318: Line 318:
 
<br />
 
<br />
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP request header constants''' <code> HTTP_REQUEST_HEADER_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP request header''' <code> HTTP_REQUEST_HEADER_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 383: Line 383:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP response header constants''' <code> HTTP_RESPONSE_HEADER_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP response header''' <code> HTTP_RESPONSE_HEADER_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 418: Line 418:
 
<br />
 
<br />
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP entity header constants''' <code> HTTP_ENTITY_HEADER_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP entity header''' <code> HTTP_ENTITY_HEADER_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 454: Line 454:
  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP status constants''' <code> HTTP_STATUS_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP status''' <code> HTTP_STATUS_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 593: Line 593:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP reason constants''' <code> HTTP_REASON_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP reason''' <code> HTTP_REASON_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 721: Line 721:
 
<br />
 
<br />
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP content type constants''' <code> HTTP_CONTENT_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP content type''' <code> HTTP_CONTENT_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 732: Line 732:
 
<br />
 
<br />
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP cache control constants''' <code> HTTP_CACHE_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP cache control''' <code> HTTP_CACHE_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 743: Line 743:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP connection constants''' <code> HTTP_CONNECTION_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP connection''' <code> HTTP_CONNECTION_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 757: Line 757:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP request flag constants''' <code> HTTP_REQUEST_FLAG_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP request flag''' <code> HTTP_REQUEST_FLAG_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 780: Line 780:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP response flag constants''' <code> HTTP_RESPONSE_FLAG_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP response flag''' <code> HTTP_RESPONSE_FLAG_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 809: Line 809:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP client state constants''' <code> HTTP_CLIENT_STATE_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP client state''' <code> HTTP_CLIENT_STATE_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 832: Line 832:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP host flag constants''' <code> HTTP_HOST_FLAG_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP host flag''' <code> HTTP_HOST_FLAG_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 849: Line 849:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP CGI flag constants''' <code> HTTP_CGI_FLAG_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP CGI flag''' <code> HTTP_CGI_FLAG_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 869: Line 869:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP error flag constants''' <code> HTTP_ERROR_FLAG_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP error flag''' <code> HTTP_ERROR_FLAG_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 883: Line 883:
 
<br />   
 
<br />   
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP module flag constants''' <code> HTTP_MODULE_FLAG_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP module flag''' <code> HTTP_MODULE_FLAG_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 894: Line 894:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP document flag constants''' <code> HTTP_DOCUMENT_FLAG_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP document flag''' <code> HTTP_DOCUMENT_FLAG_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 917: Line 917:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP mime type constants''' <code> HTTP_MIME_TYPE_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP mime type''' <code> HTTP_MIME_TYPE_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 1,025: Line 1,025:
 
<br />  
 
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
<div style="font-size: 14px; padding-left: 12px;">'''HTTP logging constants''' <code> HTTP_LOG_LEVEL_* </code></div>
+
<div style="font-size: 14px; padding-left: 12px;">'''HTTP logging''' <code> HTTP_LOG_LEVEL_* </code></div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
{| class="wikitable" style="font-size: 14px; background: white;"
 
{| class="wikitable" style="font-size: 14px; background: white;"
Line 3,495: Line 3,495:
 
|-
 
|-
 
| <code>HTTP_DEFAULT_LOG_LEVEL:LongWord = HTTP_LOG_LEVEL_DEBUG;</code>
 
| <code>HTTP_DEFAULT_LOG_LEVEL:LongWord = HTTP_LOG_LEVEL_DEBUG;</code>
| style="width: 65%;"|Minimum level for HTTP messages. Only messages with level greater than or equal to this will be printed.
+
| style="width: 40%;"|Minimum level for HTTP messages. Only messages with level greater than or equal to this will be printed.
 
|-
 
|-
 
|}
 
|}
Line 3,501: Line 3,501:
 
|-
 
|-
 
| <code>HTTP_LOG_ENABLED:Boolean;</code>
 
| <code>HTTP_LOG_ENABLED:Boolean;</code>
| style="width: 65%;"|
+
| style="width: 40%;"|
 
|-
 
|-
 
|}
 
|}

Revision as of 05:25, 24 March 2017

Return to Unit Reference


Description


Ultibo HTTP interface unit

To be documented

Constants



[Expand]
HTTP specific constants HTTP_*


[Expand]
HTTP date HTTP_DATE_*


[Expand]
HTTP client HTTP_*


[Expand]
HTTP server HTTP_SERVER_*


[Expand]
HTTP protocol HTTP_PROTOCOL_*


[Expand]
HTTP method HTTP_METHOD_*


[Expand]
HTTP version HTTP_VERSION_*


[Expand]
HTTP encoding HTTP_ENCODING_*


[Expand]
HTTP general header HTTP_GENERAL_HEADER_*


[Expand]
HTTP request header HTTP_REQUEST_HEADER_*


[Expand]
HTTP response header HTTP_RESPONSE_HEADER_*


[Expand]
HTTP entity header HTTP_ENTITY_HEADER_*


[Expand]
HTTP status HTTP_STATUS_*


[Expand]
HTTP reason HTTP_REASON_*


[Expand]
HTTP content type HTTP_CONTENT_*


[Expand]
HTTP cache control HTTP_CACHE_*


[Expand]
HTTP connection HTTP_CONNECTION_*


[Expand]
HTTP request flag HTTP_REQUEST_FLAG_*


[Expand]
HTTP response flag HTTP_RESPONSE_FLAG_*


[Expand]
HTTP client state HTTP_CLIENT_STATE_*


[Expand]
HTTP host flag HTTP_HOST_FLAG_*


[Expand]
HTTP CGI flag HTTP_CGI_FLAG_*


[Expand]
HTTP error flag HTTP_ERROR_FLAG_*


[Expand]
HTTP module flag HTTP_MODULE_FLAG_*


[Expand]
HTTP document flag HTTP_DOCUMENT_FLAG_*


[Expand]
HTTP mime type HTTP_MIME_TYPE_*


[Expand]
HTTP logging HTTP_LOG_LEVEL_*


Type definitions



HTTP reserved chars

THTTPReservedChars = set of AnsiChar;

HTTP redirect event

THTTPRedirectEvent = function(AClient:THTTPClient; const AURL:String; var ALocation:String):Boolean of Object;

HTTP password event

THTTPPasswordEvent = function(AClient:THTTPClient; var AUsername,APassword:String):Boolean of Object;

HTTP host event

THTTPHostEvent = function(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean of Object;

HTTP error event

THTTPErrorEvent = function(AHost:THTTPHost; AError:THTTPError; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean of Object;

HTTP module event

THTTPModuleEvent = function(AHost:THTTPHost; AModule:THTTPModule; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean of Object;

HTTP document event

THTTPDocumentEvent = function(AHost:THTTPHost; ADocument:THTTPDocument; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean of Object;


Class definitions



HTTP buffer

[Expand]

THTTPBuffer = class(TObject)

HTTP parameter

[Expand]

THTTPParam = class(TListObject)

HTTP parameters

[Expand]

THTTPParams = class(TObject)

HTTP header

[Expand]

THTTPHeader = class(TListObject)

HTTP headers

[Expand]

THTTPHeaders = class(TObject)

HTTP client request

[Expand]

THTTPClientRequest = class(TObject)

HTTP client response

[Expand]

THTTPClientResponse = class(TObject)

HTTP client

[Expand]

THTTPClient = class(TWinsock2TCPClient)

HTTP server request

[Expand]

THTTPServerRequest = class(TObject)

HTTP server response

[Expand]

THTTPServerResponse = class(TObject)

HTTP host

[Expand]

THTTPHost = class(TListObject)

HTTP error

[Expand]

THTTPError = class(TListObject)

HTTP alias

[Expand]

THTTPAlias = class(TListObject)

HTTP module

[Expand]

THTTPModule = class(TListObject)

HTTP document

[Expand]

THTTPDocument = class(TListObject)

HTTP mime type

[Expand]

THTTPMimeType = class(TListObject)

HTTP redirect

[Expand]

THTTPRedirect = class(THTTPDocument)

HTTP folder

[Expand]

THTTPFolder = class(THTTPDocument)

HTTP file

[Expand]

THTTPFile = class(THTTPDocument)

HTTP listener

[Expand]

THTTPListener = class(TWinsock2TCPListener)


Public variables



HTTP logging

HTTP_DEFAULT_LOG_LEVEL:LongWord = HTTP_LOG_LEVEL_DEBUG; Minimum level for HTTP messages. Only messages with level greater than or equal to this will be printed.
HTTP_LOG_ENABLED:Boolean;


Function declarations



Initialization functions

[Expand]
procedure HTTPInit;
Description: To be documented


HTTP helper functions

[Expand]
function HTTPEncode(const AValue:String; AReserved:THTTPReservedChars):String;
Description: To be documented


[Expand]
function HTTPDecode(const AValue:String):String;
Description: To be documented


[Expand]
function HTTPParseURI(const AURI:String; var AProtocol,AHost,APort,APath,AQuery:String):Boolean;
Description: To be documented


[Expand]
function HTTPBuildURI(const AProtocol,AHost,APort,APath,AQuery:String; var AURI:String):Boolean;
Description: To be documented


[Expand]
function HTTPParseHost(const AHost:String; var AName,APort:String):Boolean;
Description: To be documented


[Expand]
function HTTPBuildHost(const AName,APort:String; var AHost:String):Boolean;
Description: To be documented


[Expand]
function HTTPParseParam(const AParam:String; var AName,AValue:String):Boolean;
Description: To be documented


[Expand]
function HTTPBuildParam(const AName,AValue:String; var AParam:String):Boolean;
Description: To be documented


[Expand]
function HTTPParseQuery(const AQuery:String; AParams:THTTPParams):Boolean;
Description: To be documented


[Expand]
function HTTPBuildQuery(AParams:THTTPParams; var AQuery:String):Boolean;
Description: To be documented


[Expand]
function HTTPParseHeader(const AHeader:String; var AName,AValue:String):Boolean;
Description: To be documented


[Expand]
function HTTPBuildHeader(const AName,AValue:String; var AHeader:String):Boolean;
Description: To be documented


[Expand]
function HTTPPathExtractName(const ASource:String; var AName:String):Boolean;
Description: To be documented


[Expand]
function HTTPPathExtractDir(const ASource:String; var APath:String):Boolean;
Description: To be documented


[Expand]
function HTTPPathExtractPath(const ASource:String; var APath:String):Boolean;
Description: To be documented


[Expand]
function HTTPPathExtractExtension(const ASource:String; var AExtension:String):Boolean;
Description: To be documented


[Expand]
function HTTPParseRequestLine(const ARequest:String; var AMethod:LongWord; var AURL:String; var AVersion:LongWord):Boolean;
Description: To be documented


[Expand]
function HTTPBuildRequestLine(AMethod:LongWord; const AURL:String; AVersion:LongWord; var ARequest:String):Boolean;
Description: To be documented


[Expand]
function HTTPParseResponseLine(const AResponse:String; var AVersion,AStatus:LongWord; var AReason:String):Boolean;
Description: To be documented


[Expand]
function HTTPBuildResponseLine(AVersion,AStatus:LongWord; const AReason:String; var AResponse:String):Boolean;
Description: To be documented


[Expand]
function FileTimeToHTTPDate(const AFileTime:TFileTime):String;
Description: To be documented


[Expand]
function HTTPDateToFileTime(const AHTTPDate:String):TFileTime;
Description: To be documented


[Expand]
function DateTimeToHTTPDate(const ADateTime:TDateTime):String;
Description: To be documented


[Expand]
function HTTPDateToDateTime(const AHTTPDate:String):TDateTime;
Description: To be documented


[Expand]
function StringToHTTPProtocol(const AProtocol:String):LongWord;
Description: To be documented


[Expand]
function HTTPProtocolToString(AProtocol:LongWord):String;
Description: To be documented


[Expand]
function StringToHTTPMethod(const AMethod:String):LongWord;
Description: To be documented


[Expand]
function HTTPMethodToString(AMethod:LongWord):String;
Description: To be documented


[Expand]
function StringToHTTPVersion(const AVersion:String):LongWord;
Description: To be documented


[Expand]
function HTTPVersionToString(AVersion:LongWord):String;
Description: To be documented


[Expand]
function StringToHTTPEncoding(const AEncoding:String):LongWord;
Description: To be documented


[Expand]
function HTTPEncodingToString(AEncoding:LongWord):String;
Description: To be documented


[Expand]
function StringToHTTPStatus(const AStatus:String):LongWord;
Description: To be documented


[Expand]
function HTTPStatusToString(AStatus:LongWord):String;
Description: To be documented


[Expand]
procedure HTTPLog(Level:LongWord;const AText:String);
Description: To be documented


[Expand]
procedure HTTPLogInfo(const AText:String);
Description: To be documented


[Expand]
procedure HTTPLogError(const AText:String);
Description: To be documented


[Expand]
procedure HTTPLogDebug(const AText:String);
Description: To be documented


Return to Unit Reference