Access Parameter in brook Framework

parameter in brook framework very simple

for example

 single parameter
TMyAction.Register('/add/:param');
multiple parameter      
TMyAction.Register('/add/:param/:param2');

example access parameter

 Write('param1='+Values.Values['param']);
 Write('param2='+Values.Values['param2']);
result
param1=1
param2=2

 

 

Advertisements
This entry was posted in Freepascal, Lazarus, Pascal and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s