Discover Packages
github.com/danapsimer/go-http-matchers
module
Version:
v0.0.7
Opens a new window with list of versions in this module.
Published: Apr 25, 2023
License: Apache-2.0
Opens a new window with license information.
README
README
¶
Go Http Matchers
This project defines a set of functions that return predicates and extractors for making decisions about http request.
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.
Distributed under the Apache 2.0 license. See LICENSE
for more information.
Contributing
Fork it (https://github.com/bluesoftdev/go-http-matchers/fork )
Create your feature branch (git checkout -b feature/fooBar
)
Commit your changes (git commit -am 'Add some fooBar'
)
Push to the branch (git push origin feature/fooBar
)
Create a new Pull Request
Expand ▾
Collapse ▴
Directories
¶
Package extractor contains higher order functions that return functions that can take a value and return some derivative value for it.
Package extractor contains higher order functions that return functions that can take a value and return some derivative value for it.
Package predicate defines an interface named Predicate that has a function named Accept that returns true or false based on the value passed to it.
Package predicate defines an interface named Predicate that has a function named Accept that returns true or false based on the value passed to it.
Click to show internal directories.
Click to hide internal directories.