public
Description: Yaws webserver
Home | Edit | New

Getting GC and SC

See Yaws internals for information about GC and SC.

Things in GC and SC may be useful, for example:

  • Server name (host:port as seen from the HTTP client)
  • ETS table for storing any application data for the application

There is a process for each request. Yaws sets GC and SC in the process dictionary of the process of out/1 function. Thus in this function:

  • To get GC: get(gc)
  • To get SC: get(sc)
Last edited by ngocdaothanh, Tue Jul 21 21:23:07 -0700 2009
Home | Edit | New
Versions: