1
0
mirror of https://github.com/ggicci/httpin.git synced 2024-11-28 08:49:05 +02:00
httpin/header.go

8 lines
232 B
Go

package httpin
// headerValueExtractor implements the "header" executor who extracts values
// from the HTTP headers.
func headerValueExtractor(ctx *DirectiveContext) error {
return ExtractFromKVS(ctx, ctx.Request.Header, true)
}