forked from zamronypj/fano
/
HttpClientOptsIntf.pas
51 lines (41 loc) · 1.47 KB
/
HttpClientOptsIntf.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
51
{*!
* 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 HttpClientOptsIntf;
interface
{$MODE OBJFPC}
{$H+}
type
(*!------------------------------------------------
* interface for any class having capability to set
* HTTP request options before send request
*
* @author Zamrony P. Juhara <zamronypj@yahoo.com>
*-----------------------------------------------*)
IHttpClientOpts = interface
['{E38B43A2-B25D-4AEF-85AB-1A153563541D}']
(*!------------------------------------------------
* set HTTP client options
*-----------------------------------------------
* @param optName option to set
* @param optValue option value
* @return current instance
*-----------------------------------------------*)
function setOpt(
const optName : string;
const optValue : integer
) : IHttpClientOpts;
(*!------------------------------------------------
* get HTTP client options
*-----------------------------------------------
* @param optName option to get
* @return option value
*-----------------------------------------------*)
function getOpt(const opt : string): integer;
end;
implementation
end.