Back to Promptfoo

provider-http (HTTP Provider)

examples/provider-http/README.md

0.121.9600 B
Original Source

provider-http (HTTP Provider)

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

Examples

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