func WithHostURL(u string) Option {
	return func(a *OPA) {
		if u != "" {
			a.hostURL = u
		}
	}
}
WithHostURL sets the host OPA URL for a query authorization request, such as
its default value given in DefaultURL.
package opahttp
import (
	"bytes"
	"context"
	"encoding/json"
	"fmt"
	"io"
	"net/http"
	"strings"
	"github.com/shiblon/entroq/pkg/authz"
)
const (
	DefaultHostURL = "http://localhost:8181"
	DefaultAPIPath = "/v1/data/entroq/authz"
)
type OPA struct {
	hostURL       string
	apiPath       string
	allowTestUser bool
}
type Option func(*OPA)
func WithInsecureTestUser() Option {
	return func(a *OPA) {
		a.allowTestUser = true
	}
}