package interceptor

import (
	"context"

	pkg_http "github.com/tidbcloud/dataflow-service-ng/pkg/grpc/http"
)

const (
	setHeaderPrefix    = "x-set-header_"
	queryHeaderPrefix  = "x-query-header_"
	cookieHeaderPrefix = "x-cookie-header_"
	httpMethod         = "x-http-method"
	httpURI            = "x-http-uri"
	httpPath           = "x-forwarded-path"
)

func HttpMethod(ctx context.Context) string {
	return pkg_http.FirstHeader(ctx, httpMethod)
}

func HttpURI(ctx context.Context) string {
	return pkg_http.FirstHeader(ctx, httpURI)
}
