New (HttpRequest constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (match syntax table to syntax template;)
Line 1: Line 1:
{{Template:HttpRequest:New subtitle}}
{{Template:HttpRequest:New subtitle}}
The <var>HttpRequest</var> constructor (run automatically when <var>New</var> is issued) takes no arguments and sets the request object default values.  For more information about HTTP request object defaults, see the [[List_of_HttpRequest_methods|individual method descriptions]].


The <var>HttpRequest</var> constructor (run automatically when <var>New</var> is issued)
takes no arguments and sets the request object default values.
For more information about HTTP request object defaults, see the individual method
descriptions in this chapter.
==Syntax==
==Syntax==
{{Template:HttpRequest:New syntax}}
{{Template:HttpRequest:New syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%httpreq</th>
<tr><th>httpRequest</th>
<td>The declared <var>HttpRequest</var> object that gets instantiated by New.
<td>The declared <var>HttpRequest</var> object that gets instantiated by New.</td></tr>
</table>


</td></tr></table>
==Usage notes==
==Usage notes==
<ul>
<li><var>New</var> can be called with no object, with an explicit class name, or with an object variable, even if that object is null:
<p class="code"> %httpRequest = new


<var>New</var> can be called with no object, with an explicit class
%httpRequest = %(httpRequest):new
name, or with an object variable, even if that object is null:
<p class="code"> %httpreq = new


  %httpreq = %(httprequest):new
  %httpRequest = %httpRequest :new
</p>
</ul>


%httpreq = %httpreq:new
</p>
==See also==
==See also==
{{Template:HttpRequest:New footer}}
{{Template:HttpRequest:New footer}}

Revision as of 00:48, 19 June 2011

Create a new HttpRequest object (HttpRequest class)

The HttpRequest constructor (run automatically when New is issued) takes no arguments and sets the request object default values. For more information about HTTP request object defaults, see the individual method descriptions.

Syntax

%httpRequest = [%(HttpRequest):]New

Syntax terms

httpRequest The declared HttpRequest object that gets instantiated by New.

Usage notes

  • New can be called with no object, with an explicit class name, or with an object variable, even if that object is null:

    %httpRequest = new %httpRequest = %(httpRequest):new %httpRequest = %httpRequest :new

See also