コード例 #1
0
ファイル: request_test.go プロジェクト: tomas-fp/gentleman
func headerResponseMiddleware(ctx *context.Context, h context.Handler) {
	ctx.Response.Header.Set("foo", ctx.Response.Header.Get("foo")+"bar")
	h.Next(ctx)
}
コード例 #2
0
ファイル: middleware_test.go プロジェクト: tomas-fp/gentleman
func forward(ctx *context.Context, h context.Handler) {
	h.Next(ctx)
}