SignedUrlMiddleware class

用调用方提供的签名函数把每个网络 NiumaDataSource 的 URL 换成 签名后的 URL,原 headers 保留;非网络 source 不调 signer。

Inheritance

Constructors

SignedUrlMiddleware(Future<String> _signer(String rawUrl))
创建 middleware;_signer 接收原始 URL,返回签名后的 URL。

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(NiumaDataSource input) Future<NiumaDataSource>
非网络 source 原样返回;否则 URI 换签名 URL,headers 透传。
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited