Aliyun.Oss.Bucket.Referer.put

You're seeing just the function put, go back to Aliyun.Oss.Bucket.Referer module for more information.
Link to this function

put(bucket, xml_body)

Specs

put(String.t(), String.t()) ::
  {:error, error()} | {:ok, Aliyun.Oss.Client.Response.t()}

PutBucketReferer接口用于设置Bucket的Referer访问白名单以及允许Referer字段是否为空。

Examples

iex> xml_body = """
...> <?xml version="1.0" encoding="UTF-8"?>
...> <RefererConfiguration>
...> <AllowEmptyReferer>true</AllowEmptyReferer >
...>     <RefererList>
...>         <Referer> http://www.aliyun.com</Referer>
...>         <Referer> https://www.aliyun.com</Referer>
...>         <Referer> http://www.*.com</Referer>
...>         <Referer> https://www.?.aliyuncs.com</Referer>
...>     </RefererList>
...> </RefererConfiguration>
...>  """
iex> Aliyun.Oss.Bucket.Referer.put("some-bucket", xml_body)
{:ok,
%Aliyun.Oss.Client.Response{
  data: "",
  headers: [
    {"Server", "AliyunOSS"},
    {"Date", "Fri, 11 Jan 2019 05:05:50 GMT"},
    {"Content-Length", "0"},
    {"Connection", "keep-alive"},
    {"x-oss-request-id", "5C0000000000000000000000"},
    {"x-oss-server-time", "63"}
  ]
}}