Previous: , Up: Options   [Contents][Index]


2.2.2 Option Data Types

In the options table there are several possible types listed for the option info argument:

boolean

#t or #f

integer

A long integer. Note that many options have named integer-valued constants defined.

biginteger

An integer that is possibly longer than a long integer.

string

A string. In Guile-1.8, the string is transmitted as 8-bit data with no encoding specified. In Guile-2.0, the scheme string is converted to a C string encoded in the current locale.

bytevector

On Guile-1.8, a string that contains 8-bit data. It may contain NULL characters. In Guile-2.0, either a bytevector or a string that only contains the Unicode code points U+0000 through U+00FF.

slist

A list containing zero or more strings. In Guile-1.8, the string is transmitted as 8-bit data with no encoding specified. In Guile-2.0, the scheme string is converted to a C string encoded in the current locale.

httppost

A list containing data that will be used for an HTTP Post operation. Obviously, this is only for handles for which the url option is set to an HTTP URL that will accept a Post operation.

The httppost data is a list of one or more HTTP Post elements. The HTTP Post elements will be passed to the server in the order in which they appear in the list.

Each HTTP Post element it itself a list. The list has two required and two optional arguments.

  1. Name of the element [required string]
  2. Contents of the element [required bytevector]
  3. The mime type for this element [optional string]
  4. The filename of this element [optional string]

The string and bytevector types are as described above.

important: The format of this data structure will change in the next version


Previous: , Up: Options   [Contents][Index]