Prev | Current Page 460 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


getParamValues( param : String ) :
Array < String >
Parameters in GET or POST can be expressed as an
array of values; this function permits to return the
whole array selecting the parameter by name.
Parameters must be expressed in the following form:
p1[]=abc & p1[]123 The returned array for the param
p1 contains two string elements ???abc??? and ???123???.
getPostData() : String Same as the getParamString() but for POST data.
Note that the string length is limited to 256KB unless
the request is encoded as multipart/form - data ; in
that case, use the getMultipart() or parseMultipart()
to retrieve the POST values.
Table continued on following page
238
Part II: Server Side, JavaScript, and Flash; Oh My!
Neko.Web Static Method Description
getURI() : String Returns the URI from the original request.
parseMultipart( onPart : String - >
String - > Void, onData : String - >
Int - > Int - > Void ) : Void
Parses the multipart data of a POST request. The
passed function onPart() is invoked when a new
part is found with the part name and the filename as
arguments.


Pages:
448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472