Property RequestBody: TStream read FRequestBody write SetRequestBody Īccepted requests are handled within the DoReadConnection overridden method. Property ResponseCookies: TStrings read FResponseCookies Property ResponseHeader: TclHttpResponseHeader read FResponseHeader Property ResponseVersion: TclHttpVersion read FResponseVersion write FResponseVersion Property RequestCookies: TStrings read FRequestCookies Property RequestHeader: TclHttpRequestHeader read FRequestHeader Property RequestUri: string read FRequestUri Property RequestMethod: string read FRequestMethod Property RequestVersion: TclHttpVersion read FRequestVersion TclHttpUserConnection = class(TclUserConnectionTls)įunction AcceptRequestData(AData: TStream): Boolean TclHttpUserConnection keeps all requests and response-related data: a request URI, an HTTP method, headers, cookies, an HTTP version, and a request body, as well. Inherited DoReadConnection(AConnection, AData) Ī class that introduces a user connection (TclHttpUserConnection) should be inherited from the TclUserConnectionTls class. Procedure TclHttpServer.DoReadConnection(AConnection: TclUserConnection AData: TStream) Result := TclHttpUserConnection.Create(HttpVersion, CharSet) Procedure DoReadConnection(AConnection: TclUserConnection AData: TStream) override įunction TclHttpServer.CreateDefaultConnection: TclUserConnection įunction CreateDefaultConnection: TclUserConnection override All you need is to inherit from this basic class and override some virtual methods. There is one more class, TclTcpServerTls, that uses Microsoft Schannel and implements the SSL / TLS protocol. The previous version of the TclHttpServer component utilized the TclTcpServer class from the Clever Internet Suite library for implementing low-level Network communication.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |