WithURLPrefix stores the URL prefix on the context.
(ctx context.Context, prefix string)
| 64 | |
| 65 | // WithURLPrefix stores the URL prefix on the context. |
| 66 | func WithURLPrefix(ctx context.Context, prefix string) context.Context { |
| 67 | return context.WithValue(ctx, contextURLPrefixKey, prefix) |
| 68 | } |
| 69 | |
| 70 | // URLPrefixFromContext retrieves the URL prefix from context. |
| 71 | func URLPrefixFromContext(ctx context.Context) string { |