Documentation ¶
Index ¶
Constants ¶
View Source
const ( AmzAlgorithm = "X-Amz-Algorithm" AmzCredential = "X-Amz-Credential" AmzSignature = "X-Amz-Signature" AmzSignedHeaders = "X-Amz-SignedHeaders" AmzExpires = "X-Amz-Expires" AmzDate = "X-Amz-Date" AmzContentSha256 = "X-Amz-Content-Sha256" AuthorizationHdr = "Authorization" ContentTypeHdr = "Content-Type" ContentEncodingHdr = "Content-Encoding" ContentEncodingAwsChunked = "aws-chunked" ContentEncodingChunked = "STREAMING-AWS4-HMAC-SHA256-PAYLOAD" )
Variables ¶
View Source
var ErrNoAuthorizationHeader = errors.New("no authorization header")
ErrNoAuthorizationHeader is returned for unauthenticated requests.
Functions ¶
Types ¶
type RegexpSubmatcher ¶ added in v0.24.0
type RegexpSubmatcher struct {
// contains filtered or unexported fields
}
func NewRegexpMatcher ¶ added in v0.24.0
func NewRegexpMatcher(re *regexp.Regexp) *RegexpSubmatcher
NewRegexpMatcher creates a new regexp sub matcher.
func (*RegexpSubmatcher) GetSubmatches ¶ added in v0.24.0
func (r *RegexpSubmatcher) GetSubmatches(target string) map[string]string
GetSubmatches returns matches from provided string. Zero length indicates no match.
Click to show internal directories.
Click to hide internal directories.