up: HTTP     index Zimbu documentation

CLASS HTTP.Context @public

summary

     

Stores the Server, Request and Response, so that we only need to pass one argument to $serve methods.

HTTP.Server  $server @public 
HTTP.Request  $request @public 
HTTP.Response  $response @public 
dict<string, dyn>  $params @public 
 
NEW(server, request, response) @public 
$setParam(name, value) dyn @public  Set parameter name to value.
$getParam(name) dyn @public  Get the value of parameters name.
 

members (alphabetically)

     

dict<string, dyn> $params @public

HTTP.Request $request @public

HTTP.Response $response @public

HTTP.Server $server @public

PROC NEW(HTTP.Server server, HTTP.Request request, HTTP.Response response) @public

FUNC $getParam(string name) dyn @public

     

Get the value of parameters name.

When name was never set NIL is returned.

FUNC $setParam(string name, dyn value) dyn @public

     

Set parameter name to value.

This is useful to pass parameters down to other Servlets.

When name was already present the value is overwritten and the previous value is returned. Otherwise NIL is returned.

license

      Copyright 2009 Bram Moolenaar All Rights Reserved.

      Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0