Skip to content

RestServer

Scott Offen edited this page Nov 12, 2014 · 9 revisions

Grapevine.Server.RESTServer

Constructors

RESTServer has a named and optional argument constructor.

Argument Type Default
protocol string http
host string localhost
port string 1234
dirindex string index.html
maxthreads int 5
webroot string [assembly location]/webroot

Methods

Start

Stop

Dispose

Properties

BaseUrl : String

DirIndex : String

Host : String

IsListening : Boolean

MaxThreads : int

OnAfterStart : delegate ToggleServerHandler

OnAfterStop : delegate ToggleServerHandler

OnBeforeStart : delegate ToggleServerHandler

OnBeforeStop : delegate ToggleServerHandler

OnStart : delegate ToggleServerHandler

OnStop : delegate ToggleServerHandler

Port : delegate ToggleServerHandler

Protocol : delegate ToggleServerHandler

WebRoot : delegate ToggleServerHandler