New (HttpRequest constructor)

From m204wiki
Revision as of 20:23, 30 November 2011 by JALWiccan (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Create a new HttpRequest object (HttpRequest class)

New 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