19972009 Ericsson AB. All Rights Reserved. The contents of this file are subject to the Erlang Public License, Version 1.1, (the "License"); you may not use this file except in compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. httpd_conf Joakim Grebenö 1997-10-14 2.2 httpd_conf.sgml
httpd_conf Configuration utility functions to be used by the Erlang Web server API programmer.

This module provides the Erlang Webserver API programmer with utility functions for adding run-time configuration directives.

check_enum(EnumString,ValidEnumStrings) -> Result Check if string is a valid enumeration. EnumString = string() ValidEnumStrings = [string()] Result = {ok,atom()} | {error,not_valid}

check_enum/2 checks if EnumString is a valid enumeration of ValidEnumStrings in which case it is returned as an atom.

clean(String) -> Stripped Remove leading and/or trailing white spaces. String = Stripped = string()

clean/1 removes leading and/or trailing white spaces from String.

custom_clean(String,Before,After) -> Stripped Remove leading and/or trailing white spaces and custom characters. Before = After = regexp() String = Stripped = string()

custom_clean/3 removes leading and/or trailing white spaces and custom characters from String. Before and After are regular expressions, as defined in regexp(3), describing the custom characters.

is_directory(FilePath) -> Result Check if a file path is a directory. FilePath = string() Result = {ok,Directory} | {error,Reason} Directory = string() Reason = string() | enoent | eaccess | enotdir | FileInfo FileInfo = File info record

is_directory/1 checks if FilePath is a directory in which case it is returned. Please read file(3) for a description of enoent, eaccess and enotdir. The definition of the file info record can be found by including file.hrl from the kernel application, see file(3).

is_file(FilePath) -> Result Check if a file path is a regular file. FilePath = string() Result = {ok,File} | {error,Reason} File = string() Reason = string() | enoent | eaccess | enotdir | FileInfo FileInfo = File info record

is_file/1 checks if FilePath is a regular file in which case it is returned. Read file(3) for a description of enoent, eaccess and enotdir. The definition of the file info record can be found by including file.hrl from the kernel application, see file(3).

make_integer(String) -> Result Return an integer representation of a string. String = string() Result = {ok,integer()} | {error,nomatch}

make_integer/1 returns an integer representation of String.

SEE ALSO

httpd(3)