forked from zamronypj/fano
/
AjaxAwareIntf.pas
35 lines (28 loc) · 1021 Bytes
/
AjaxAwareIntf.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
{*!
* 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 AjaxAwareIntf;
interface
{$MODE OBJFPC}
type
(*!------------------------------------------------
* interface for any class having capability as
* to test if HTTP request is AJAX request
*
* @author Zamrony P. Juhara <zamronypj@yahoo.com>
*-----------------------------------------------*)
IAjaxAware = interface
['{40E50D4E-60F7-4763-B975-ACDDBA4C365C}']
(*!------------------------------------------------
* test if current request is coming from AJAX request
*-------------------------------------------------
* @return true if ajax request false otherwise
*------------------------------------------------*)
function isXhr() : boolean;
end;
implementation
end.