TROIndyHTTPServer

From RemObjects Software

Jump to: navigation, search

This is a RemObjects SDK Architecture entry
Feel free to add your notes to this topic below.



Overview

TROIndyHTTPServer implements an HTTP based server that uses the HTTP implementation provided by the open source Indy components that ship with Delphi.

File

  • uROIndyHTTPServer

Declaration

TROIndyHTTPServer = class(TROCustomIndyTCPServer);

Hierarchy

Properties

Property
Type
Description
IndyServer TROIdHTTPServer Provides direct access to the underlying Indy implementation.

You can use this property to control advanced settings on the Indy object. The available properties and settings depend on the version of Indy you are using.

KeepAlive Boolean Controls whether to use HTTP Keep-Alive to keep the connection alive between requests.

If enabled (true) , once a request is made and a connection is established, this connection is kept open and used for future requests.
If disabled, the connection is closed, and a new connection is created for future requests.
Since establishing a connection is - relatively speaking - a costly and resource intensive operation for the network, compared to sending small amounts of data, it is recommended to keep this option enabled for optimal performance, if requests to the server are done relatively frequently.
For Keep-Alive to work, the option must be supported and enabled on both client and server.

Port Integer The network socket where the server will be listening (default for RemObjects SDK HTTP servers is 8099).
SendExceptionsAs500 Boolean Determines whether exception messages will be sent back using a HTTP "500" error code (true, default), or a standard "200" message code (false). Some proxy servers might perform special handling on 500 error messages that will prevent exception messages sent back as 500 to be recognized properly. If you are seeing this problem, try setting this property to false. If not, it is recommended that you keep the default value.
ServeInfoPage Boolean Allows the HTTP server to serve up a page with human-readable information about the server when being accessed from a web browser.

This information page will contain details about the registered dispatchers and the documentation for the Services.

ServeRodl Boolean Permits the HTTP server to make its RODL file available to clients (true, default) or not.

Keep this property set to true if clients need to access the RODL (or WSDL), e.g. so that third parties (including Service Tester) can import Services. Set it to false if you do not want to provide this information, e.g. for security reasons.


See Also


Product: RemObjects SDK
Current version: RemObjects SDK 'Vinci' (5.0)

ListsGlossaryFeaturesHow ToComponentsToolsSamplesArticlesArchitectureIssues

Personal tools