[ Previous ] [ Contents ] [ Index ] [ Next ]

ns_method

Overview

Add, delete, or get information about method aliases

Syntax

ns_method add ?-server servername? method mapto

ns_method delete ?-server servername? method

ns_method exists ?-server servername? method

ns_method list ?-server servername?

ns_method mapto ?-server servername? method

Description

ns_method add adds the method alias specified in method and maps it to the method specified in mapto. If no servername is specified, the current virtual server is used. The method in mapto must be GET, PUT, or POST. The default method aliases are:

This Method Alias:

Is Mapped To This Method:

BROWSE

GET

HEAD

GET

MKDIR

PUT

DELETE

PUT

ns_method delete deletes the specified method or method alias. If no servername is specified, the current virtual server is used.

ns_method exists returns 1 (one) if the specified method exists and 0 (zero) if it does not. If no servername is specified, the current virtual server is used.

ns_method list returns a list of method aliases. If no servername is specified, the current virtual server is used.

ns_method mapto returns the method that the specified method alias (specified in method) is mapped to. If no servername is specified, the current virtual server is used.

Note

This function normally updates the methods disk file each time it is called. To perform large-scale loading of methods, first call ns_perm syncoff to disable the file synchronization mechanism, then perform multiple calls to ns_method, and finally call ns_perm syncon to re-enable the file synchronization.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.