http_request.go 277 B

12345678
  1. package dify_invocation
  2. import "github.com/langgenius/dify-plugin-daemon/internal/utils/requests"
  3. func Request[T any](method string, path string, options ...requests.HttpOptions) (*T, error) {
  4. return requests.RequestAndParse[T](client, difyPath(path), method, options...)
  5. }