forked from zamronypj/fano
/
FcgiRequestReadyListenerIntf.pas
50 lines (39 loc) · 1.37 KB
/
FcgiRequestReadyListenerIntf.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{*!
* Fano Web Framework (https://fanoframework.github.io)
*
* @link https://github.com/fanoframework/fano
* @copyright Copyright (c) 2018 Zamrony P. Juhara
* @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT)
*}
unit FcgiRequestReadyListenerIntf;
interface
{$MODE OBJFPC}
{$H+}
uses
EnvironmentIntf,
StreamAdapterIntf;
type
(*!-----------------------------------------------
* Interface for any class having capability to be notified
* when FastCGI request is complete and ready to be served
*
* @author Zamrony P. Juhara <zamronypj@yahoo.com>
*-----------------------------------------------*)
IFcgiRequestReadyListener = interface
['{020E86BA-AA7A-4809-97B1-37AF63D429E3}']
(*!------------------------------------------------
* FastCGI request is ready
*-----------------------------------------------
* @param socketStream, original socket stream
* @param env, CGI environment
* @param stdInStream, stream contains parsed POST-ed data
* @return true request is handled
*-----------------------------------------------*)
function ready(
const socketStream : IStreamAdapter;
const env : ICGIEnvironment;
const stdInStream : IStreamAdapter
) : boolean;
end;
implementation
end.