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" AuthorizationHdr = "Authorization" ContentTypeHdr = "Content-Type" )
Variables ¶
View Source
var ErrNoAuthorizationHeader = errors.New("no authorization header")
ErrNoAuthorizationHeader is returned for unauthenticated requests.
Functions ¶
Types ¶
type RegexpSubmatcher ¶
type RegexpSubmatcher struct {
// contains filtered or unexported fields
}
func NewRegexpMatcher ¶
func NewRegexpMatcher(re *regexp.Regexp) *RegexpSubmatcher
NewRegexpMatcher creates a new regexp sub matcher.
func (*RegexpSubmatcher) GetSubmatches ¶
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.