class ServerMethods
package haxe.display
import haxe.display.Server
Available on all platforms
Static variables
staticinlineread onlyConfigure:HaxeRequestMethod<ConfigureParams, Response<NoData>> = new HaxeRequestMethod<ConfigureParams,Response<NoData>>("server/configure")
Configure server print options, module check behavior and legacy completion mode.
staticinlineread onlyContextMemory:HaxeRequestMethod<ContextParams, Response<HaxeContextMemoryResult>> = new HaxeRequestMethod<ContextParams,Response<HaxeContextMemoryResult>>("server/memory/context")
Return detailed memory usage for a specific compilation context.
staticinlineread onlyContexts:HaxeRequestMethod<NoData, Response<Array<HaxeServerContext>>> = new HaxeRequestMethod<NoData,Response<Array<HaxeServerContext>>>("server/contexts")
List all active compilation contexts (one per unique define signature and platform).
staticinlineread onlyFiles:HaxeRequestMethod<ContextParams, Response<Array<JsonServerFile>>> = new HaxeRequestMethod<ContextParams,Response<Array<JsonServerFile>>>("server/files")
List all cached files in a compilation context.
staticinlineread onlyGcCompact:HaxeRequestMethod<NoData, Response<GcCompactResult>> = new HaxeRequestMethod<NoData,Response<GcCompactResult>>("server/gcCompact")
Trigger a GC compaction cycle and report before/after heap sizes.
staticinlineread onlyInvalidate:HaxeRequestMethod<FileParams, Response<NoData>> = new HaxeRequestMethod<FileParams,Response<NoData>>("server/invalidate")
Invalidate a file, removing it from the cache and marking dependent modules as tainted.
staticinlineread onlyMemory:HaxeRequestMethod<NoData, Response<HaxeMemoryResult>> = new HaxeRequestMethod<NoData,Response<HaxeMemoryResult>>("server/memory")
Return memory usage statistics for the compilation server.
staticinlineread onlyModule:HaxeRequestMethod<ModuleParams, Response<JsonModule>> = new HaxeRequestMethod<ModuleParams,Response<JsonModule>>("server/module")
Return detailed information about a specific cached module.
staticinlineread onlyModuleCreated:HaxeRequestMethod<FileParams, Response<NoData>> = new HaxeRequestMethod<FileParams,Response<NoData>>("server/moduleCreated")
Notify the server that a new module file has been created.
staticinlineread onlyModuleMemory:HaxeRequestMethod<ModuleParams, Response<HaxeModuleMemoryResult>> = new HaxeRequestMethod<ModuleParams,Response<HaxeModuleMemoryResult>>("server/memory/module")
Return memory usage for a specific module within a context.
staticinlineread onlyModules:HaxeRequestMethod<ContextParams, Response<Array<String>>> = new HaxeRequestMethod<ContextParams,Response<Array<String>>>("server/modules")
List all cached modules in a compilation context.
staticinlineread onlyReadClassPaths:HaxeRequestMethod<ReadClassPathsParams, Response<{files:Null<Int>}>> = new HaxeRequestMethod<ReadClassPathsParams,Response<{ var ?files : Int}>>("server/readClassPaths")
This request is sent from the client to Haxe to explore the class paths. This effectively creates a cache for toplevel completion.
staticinlineread onlySetCwd:HaxeRequestMethod<SetCwdParams, Response<NoData>> = new HaxeRequestMethod<SetCwdParams,Response<NoData>>("server/setCwd")
Set the persistent working directory for subsequent requests. The directory is reset by server/resetState.
staticinlineread onlyType:HaxeRequestMethod<TypeParams, Response<JsonModuleType<Any>>> = new HaxeRequestMethod<TypeParams,Response<JsonModuleType<Any>>>("server/type")
Return detailed information about a specific type within a cached module.