forked from zamronypj/fano
/
HttpPutClientIntf.pas
48 lines (37 loc) · 1.19 KB
/
HttpPutClientIntf.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
{*!
* 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 HttpPutClientIntf;
interface
{$MODE OBJFPC}
{$H+}
uses
SerializeableIntf,
ResponseStreamIntf;
type
(*!------------------------------------------------
* interface for any class having capability to send
* HTTP PUT request to a server
*
* @author Zamrony P. Juhara <zamronypj@yahoo.com>
*-----------------------------------------------*)
IHttpPutClient = interface
['{D3AC5625-A6D4-41D6-B69C-75EB75B1E982}']
(*!------------------------------------------------
* send HTTP PUT request
*-----------------------------------------------
* @param url url to send request
* @param data data related to this request
* @return HTTP response
*-----------------------------------------------*)
function put(
const url : string;
const data : ISerializeable = nil
) : IResponseStream;
end;
implementation
end.