[SparForte][Banner]
[Top Main Menu] Intro | Tutorials | Reference | Packages | Examples | Contributors   [Back Page]      [Next Page]  

GNAT.CGI Package

The GNAT.CGI package is the standard CGI package included with GCC Ada (GNAT). By default, support is disabled because, once enabled, it requires SparForte to only run as a CGI language. It can be enabled in the configure script when building SparForte from sources.

This package is experimental. It has not been fully tested in SparForte. This package is incompatible with the cgi package and pragma import.

GCC Ada Equivalent: GNAT.CGI

See also: the SparForte cgi package.

The documentation is not complete. See the Gcc Ada documentation for more information on these subprograms.

gnat.cgi.put_header [(f) | (h [,f])]
b := gnat.cgi.ok
m := gnat.cgi.method
s := gnat.cgi.metavariable( k [,r] )
b := gnat.cgi.metavariable.exists( k )
s := gnat.cgi.url
n := gnat.cgi.argument_count
s := gnat.cgi.value( k [,r] | p )
b := gnat.cgi.key_exists( k )
s := gnat.cgi.key( p )
gnat.cgi.cookie.put_header [ (f) | (h [,f]) ]
b := gnat.cgi.cookie_ok
n := gnat.cgi.cookie_count
s := gnat.cgi.cookie_value( k [,r] )
b := gnat.cgi.cookie_exists( k )
s := gnat.cgi.cookie_key( p )
gnat.cgi.cookie.set( k [,v [,c [,d [,m [,p [,s] ] ] ] ] ] )
s := gnat.cgi.debug.text_output
s := gnat.cgi.debug.html_output
 
Help Command: Contents of the gnat.cgi package

Standard Types and Constants

  • gnat.cgi.default_header - a constant string, the default HTML header returned
  • gnat.cgi.method_type - an enumerated type gnat.cgi.method_type.get and gnat.cgi.method_type.post
  • gnat.cgi.metavariable_name - an enumerated type of the standard CGI variables (e.g. gnat.cgi.metavariable_name.auth_type and so on)
 
[Right Submenu]

 Summary

 arrays

 btree_io

 calendar

 cgi

 chains

 command_line

 db/ postgresql

 dbm

 directory_operations

 doubly_linked...

 dynamic_hash_...

 enums

 exceptions

 files

 gnat.cgi

 gnat.crc32

 hash_io

 lock_files

 memcache

 memcache.highread

 mysql

 mysqlm

 numerics

 os

 pen

 pen (OpenGL)

 records

 sound

 source_info

 stats

 strings

 System

 teams

 templates

 text_io

 units

[Back to Top] Back To Top [Small Forte Symbol]