Concise, declarative, and easy-to-use end-to-end HTTP and REST API testing for Go (golang). Basically, httpexpect is a set of chainable builders for HTTP requests and assertions for HTTP responses and payload, on top of net/http and several utility packages. URL path construction, with simple string interpolation provided by go-interpol package. URL query parameters (encoding using go-querystring package). Headers, cookies, payload: JSON, urlencoded or multipart forms (encoding using form package), plain text. Custom reusable request builders and request transformers. Type-specific assertions, supported types: object, array, string, number, boolean, null, datetime. Regular expressions. Simple JSON queries (using subset of JSONPath), provided by jsonpath package. JSON Schema validation, provided by gojsonschema package.

Features

  • Incrementally build HTTP requests
  • Inspect HTTP responses
  • Inspect response payload recursively
  • URL path construction, with simple string interpolation provided by go-interpol package
  • URL query parameters (encoding using go-querystring package)
  • Headers, cookies, payload: JSON, urlencoded or multipart forms (encoding using form package), plain text

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow httpexpect

httpexpect Web Site

Other Useful Business Software
Secure User Management, Made Simple | Frontegg Icon
Secure User Management, Made Simple | Frontegg

Get 7,500 MAUs, 50 tenants, and 5 SSOs free – integrated into your app with just a few lines of code.

Frontegg powers modern businesses with a user management platform that’s fast to deploy and built to scale. Embed SSO, multi-tenancy, and a customer-facing admin portal using robust SDKs and APIs – no complex setup required. Designed for the Product-Led Growth era, it simplifies setup, secures your users, and frees your team to innovate. From startups to enterprises, Frontegg delivers enterprise-grade tools at zero cost to start. Kick off today.
Start for Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of httpexpect!

Additional Project Details

Programming Language

Go

Related Categories

Go HTTP Servers, Go Software Testing Tool, Go HTTP Clients

Registered

2023-05-11