0

provider-http (HTTP Provider)

Examples for using promptfoo's generic HTTP provider to connect to any API endpoint.

Example · مثال

Content

provider-http (HTTP Provider)

Examples for using promptfoo's generic HTTP provider to connect to any API endpoint.

Examples

  • [basic](./basic/) - Simple HTTP POST provider with response transformation
  • [auth-signature](./auth-signature/) - PEM-based signature authentication
  • [auth-signature-jks](./auth-signature-jks/) - JKS keystore-based signature authentication
  • [auth-signature-pfx](./auth-signature-pfx/) - PFX certificate-based signature authentication
  • [streaming](./streaming/) - Streaming responses via SSE
  • [tls](./tls/) - TLS configurations: CA certs, mutual TLS, PFX bundles

Source and license

Source
Promptfoo
Original
promptfoo/promptfoo/examples/provider-http
License
MIT