Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

A set of higher order functions that return predicates which can be used to set conditions for http Requests. Useful for applications that need to match on request attributes. Extracted from the github.com/bluesoftdev/mockery project.

License

Notifications You must be signed in to change notification settings

bluesoftdev/go-http-matchers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Project is Deprecated, you should use danapsimer/go-http-matchers instead.

Go Http Matchers

This project defines a set of functions that return predicates and extractors for making decisions about http request.

Go Lang Version Go Doc Go Report Card codecov CircleCI

The process of making decisions on how to handle an HTTP Request as in a mocking framework like Mockery or a reverse proxy like Iluvitar can result in cumbersome code that is hard to follow, so we built this library to make this process easier.

See Mockery for an example usage.

Installation

go get github.com/bluesoftdev/go-http-matchers

Development setup

git clone https://github.com/bluesoftdev/go-http-matchers.git
cd go-http-matchers
go mod download

Release History

  • v0.0.6 - Filled out this README.

Meta

Distributed under the Apache 2.0 license. See LICENSE for more information.

Contributing

  1. Fork it (https://github.com/bluesoftdev/go-http-matchers/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

About

A set of higher order functions that return predicates which can be used to set conditions for http Requests. Useful for applications that need to match on request attributes. Extracted from the github.com/bluesoftdev/mockery project.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages