go-http-matchers

module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2018 License: Apache-2.0

README

Go Http Matchers

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

Go Lang Version

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

Usage example

A few motivating and useful examples of how your product can be used. Spice this up with code blocks and potentially more screenshots.

For more examples and usage, please refer to the Wiki.

Development setup

Describe how to install all development dependencies and how to run an automated test-suite of some kind. Potentially do this for multiple platforms.

make install
npm test

Release History

  • 0.2.1
    • CHANGE: Update docs (module code remains unchanged)
  • 0.2.0
    • CHANGE: Remove setDefaultXYZ()
    • ADD: Add init()
  • 0.1.1
    • FIX: Crash when calling baz() (Thanks @GenerousContributorName!)
  • 0.1.0
    • The first proper release
    • CHANGE: Rename foo() to bar()
  • 0.0.1
    • Work in progress

Meta

Your Name – @YourTwitterYourEmail@example.com

Distributed under the XYZ license. See LICENSE for more information.

https://github.com/yourname/github-link

Contributing

  1. Fork it (https://github.com/yourname/yourproject/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

Directories

Path Synopsis
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL