New (HttpRequest constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
Line 8: Line 8:
<tr><th>%httpRequest</th><td>A declared <var>HttpRequest</var> object to contain the new <var>HttpRequest</var> object instance.</td></tr>
<tr><th>%httpRequest</th><td>A declared <var>HttpRequest</var> object to contain the new <var>HttpRequest</var> object instance.</td></tr>
<tr><th><var>%(HttpRequest)</var></th>
<tr><th><var>%(HttpRequest)</var></th>
<td>The optional class name in parentheses denotes a <var>[[Notation conventions for methods#Constructors|Constructor]]</var>.  <var>New</var> can also be invoked via an <var>[[HttpRequest_class|HttpRequest]]</var> object variable, which may be <var>Null</var>.</td></tr>
<td>The optional class name in parentheses denotes a <var>[[Notation conventions for methods#Constructors|Constructor]]</var>.  See [[#Usage notes|"Usage notes"]], below, for more information about invoking an <var>HttpRequest</var> <var>Constructor</var>.</td></tr>
</table>
</table>



Revision as of 18:52, 27 July 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 HttpRequest object defaults, see the individual method descriptions.

Syntax

%httpRequest = [%(HttpRequest):]New

Syntax terms

%httpRequestA declared HttpRequest object to contain the new HttpRequest object instance.
%(HttpRequest) The optional class name in parentheses denotes a Constructor. See "Usage notes", below, for more information about invoking an HttpRequest Constructor.

Usage notes

  • As described in "Using New or other Constructors", New can be invoked with no object, with an explicit class name, or with an object variable in the class, even if that object is Null:

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

See also