HttpResponse methods syntax: Difference between revisions
Jump to navigation
Jump to search
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 9: | Line 9: | ||
<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">:[[HeaderValue (HttpResponse function)|HeaderValue]]</span><span class="literal">(</span> <span class="term" title="String">name</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">occurrence</span><span class="squareb">]</span><span class="literal">)</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">:[[HeaderValue (HttpResponse function)|HeaderValue]]</span><span class="literal">(</span> <span class="term" title="String">name</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">occurrence</span><span class="squareb">]</span><span class="literal">)</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">:[[Message (HttpResponse function)|Message]]</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">:[[Message (HttpResponse function)|Message]]</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">%httpResponse</span><span class="literal"> =</span> <span class="literal">%(HttpResponse):[[New (HttpResponse constructor)|New]]</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">%httpResponse</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(HttpResponse)</span><span class="squareb">]</span><span class="literal">:[[New (HttpResponse constructor)|New]]</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="squareb">[</span><span class="term">%number</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">httpResponse</span><span class="literal">:[[ParseXml (HttpResponse function)|ParseXml]]</span><span class="literal">(</span> <span class="term" title="XmlDoc">doc</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="literal">)</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="squareb">[</span><span class="term">%number</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">httpResponse</span><span class="literal">:[[ParseXml (HttpResponse function)|ParseXml]]</span><span class="literal">(</span> <span class="term" title="XmlDoc">doc</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="literal">)</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">httpResponse</span><span class="literal">:[[Print (HttpResponse subroutine)|Print]]</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">httpResponse</span><span class="literal">:[[Print (HttpResponse subroutine)|Print]]</span></p> |
Revision as of 00:47, 23 August 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( name, [occurrence])
%string = httpResponse:Message
%httpResponse = [%(HttpResponse)]:New
[%number =] httpResponse:ParseXml( doc, [options])
httpResponse:Print
%string = httpResponse:StatusLine
%number = httpResponse:Success
%string = httpResponse:URL