HttpResponse methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
(Automatically generated page update)
 
(2 intermediate revisions by one other user not shown)
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="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 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>
 
Throws [[XmlParseError class|XmlParseError]]</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>
<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">:[[StatusLine (HttpResponse function)|StatusLine]]</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">:[[StatusLine (HttpResponse function)|StatusLine]]</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">:[[Success (HttpResponse function)|Success]]</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">:[[Success (HttpResponse function)|Success]]</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">:[[URL (HttpResponse function)|URL]]</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">:[[URL (HttpResponse function)|URL]]</span></p>

Latest revision as of 20:43, 16 June 2014

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

[%number =] httpResponse:ParseXml( doc, [options]) Throws XmlParseError

httpResponse:Print

%string = httpResponse:StatusLine

%number = httpResponse:Success

%string = httpResponse:URL