1/18/2024 0 Comments Instaling Sparkle![]() ![]() Specify the BaseUrl property of the server (for example,Ĭonfigure any specific property of the server There is a full chapter about the design-time components,īut here is a short summary about how to use it:ĭrop a dispatcher component in the form (for example,ĭrop a server component in the form (TSparkleStaticServer,Īssociated the server to the dispatcher through the Dispatcher If you want the RAD, component dropping approach, this is the way. Using Design-Time ComponentsĪnother way to use TMS Sparkle is by using the design-time components. Template just responds any request with a "Hello, World" message. The new server will be create and ready to run. Path form the rest of base URL where your server will be reached. Usually you don't need to change the host name, for more info check Service one to later install it in production, both sharing common code. (for example, you can have a VCL project for quick test the server and a ForĪvailable and you have to create it manually.Ĭhose the kind of applications you want to server to run on, thenĪvailable options are VCL, FMX, Service and Console. Mandatory and it's just a way to get started quickly. You can use the "New TMS Sparkle Server" wizard to create a new server Module 1 will receive requests and provide responses for URIs like While Module 2 will receive requests and provide responses for URIs like Note that the dispatcher will forward the request to the proper moduleīased on the base URI, but then the module must be responsible to parse A module receives requests for the URI he'sĪssociated with, and also for all other URI which parent is theįor example, suppose you have registered two modules 1 and 2, and their Each module has an URI associated with it, and theĭispatcher is responsible to redirect the request to the proper module,īased on the requested URI. ![]() You register into the dispatcher to receive requests for a particular Currently you can have three different server types:Įach server is different from each other, but all them have a commonĭispatcher is the object that holds information about all server modulesįinally a module is a logical part of the whole server architecture that The server is higher-level object that handles the communication process Sparkle Http Server provides three concepts, a server, a dispatcher and In this chapter we will explain how theseĬlasses work and how you can build your Http Server using Sparkle. Sparkle provides classes for you to build an Http Server to process and
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |