acl
3.5.3.0
OptionsRequest.hpp
浏览该文件的文档.
1
#pragma once
2
#include "
acl_cpp/acl_cpp_define.hpp
"
3
#include "
acl_cpp/http/http_type.hpp
"
4
5
namespace
acl
6
{
7
8
class
dbuf_pool;
9
10
class
ACL_CPP_API
OptionsRequest
11
{
12
public
:
13
OptionsRequest
(
dbuf_pool
* pool = NULL);
14
~
OptionsRequest
();
15
16
OptionsRequest
& setBucketName(
const
char
*
name
);
17
OptionsRequest
& setOrigin(
const
char
* origin);
18
OptionsRequest
& setRequestMethod(
http_method_t
method);
19
OptionsRequest
& setRequestHeaders(
const
char
* headers);
20
OptionsRequest
& setObjectName(
const
char
*
name
);
21
void
reset();
22
23
const
char
*
getBucketName
()
const
24
{
25
return
bucket_;
26
}
27
28
const
char
*
getOrigin
()
const
29
{
30
return
origin_;
31
}
32
33
http_method_t
getRequestMethod
()
const
34
{
35
return
method_;
36
}
37
38
const
char
*
getRequestHeaders
()
const
39
{
40
return
headers_;
41
}
42
43
const
char
*
getObjectName
()
const
44
{
45
return
object_name_;
46
}
47
48
private
:
49
dbuf_pool
* pool_;
50
char
* bucket_;
51
char
* origin_;
52
char
* headers_;
53
char
* object_name_;
54
http_method_t
method_;
55
};
56
57
}
// namespace acl
name
HTTP_API void const char * name
Definition:
lib_http.h:620
acl::OptionsRequest::getRequestMethod
http_method_t getRequestMethod() const
Definition:
OptionsRequest.hpp:33
acl::OptionsRequest::getOrigin
const char * getOrigin() const
Definition:
OptionsRequest.hpp:28
acl_cpp_define.hpp
acl::OptionsRequest::getRequestHeaders
const char * getRequestHeaders() const
Definition:
OptionsRequest.hpp:38
acl
Definition:
acl_cpp_init.hpp:4
acl::OptionsRequest::getBucketName
const char * getBucketName() const
Definition:
OptionsRequest.hpp:23
acl::OptionsRequest::getObjectName
const char * getObjectName() const
Definition:
OptionsRequest.hpp:43
acl::http_method_t
http_method_t
Definition:
http_type.hpp:29
acl::OptionsRequest
Definition:
OptionsRequest.hpp:10
http_type.hpp
acl::dbuf_pool
Definition:
dbuf_pool.hpp:17
ACL_CPP_API
#define ACL_CPP_API
Definition:
acl_cpp_define.hpp:16
include
acl_cpp
aliyun
oss
model
OptionsRequest.hpp
生成于 2021年 九月 10日 星期五 11:14:44 , 为 acl使用
1.8.15