HttpResponse methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
 
m (Automatically generated page update)
Line 4: Line 4:
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">httpResponse</span><span class="literal">:[[Code (HttpResponse function)|Code]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">httpResponse</span><span class="literal">:[[Code (HttpResponse function)|Code]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">httpResponse</span><span class="literal">:[[Content (HttpResponse function)|Content]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">httpResponse</span><span class="literal">:[[Content (HttpResponse function)|Content]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%sl</span><span class="literal"> =</span> <span class="term">httpResponse</span><span class="literal">:[[ContentToStringList (HttpResponse function)|ContentToStringList]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%sl</span><span class="literal"> =</span> <span class="term">httpResponse</span><span class="literal">:[[ContentToStringlist (HttpResponse function)|ContentToStringlist]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">httpResponse</span><span class="literal">:[[HeaderCount (HttpResponse function)|HeaderCount]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">httpResponse</span><span class="literal">:[[HeaderCount (HttpResponse function)|HeaderCount]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%sl</span><span class="literal"> =</span> <span class="term">httpResponse</span><span class="literal">:[[HeaderNames (HttpResponse function)|HeaderNames]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%sl</span><span class="literal"> =</span> <span class="term">httpResponse</span><span class="literal">:[[HeaderNames (HttpResponse function)|HeaderNames]]</span></p>

Revision as of 21:18, 17 June 2011

The syntax for each of the HttpResponse class methods is shown below.

Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of HttpResponse methods.

%string = httpResponse:Code

%string = httpResponse:Content[( [number])]

%sl = httpResponse:ContentToStringlist

%number = httpResponse:HeaderCount[( [string])]

%sl = httpResponse:HeaderNames

%string = httpResponse:HeaderValue( string, [number])

%string = httpResponse:Message

%httpResponse = %(HttpResponse):New

[%number =] httpResponse:ParseXml( doc, [string])

httpResponse:Print

%string = httpResponse:StatusLine

%number = httpResponse:Success

%string = httpResponse:URL