Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Differ proxy local request and forward request to 2 remote server and compare the response diff.

Notifications You must be signed in to change notification settings

BouncyElf/differ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

16 Commits

Repository files navigation

Differ

Differ proxy local request and forward request to 2 remote server and compare the response diff.

Usage

Make sure you are testing an api without any side-effect

  1. start the differ server
go install github.com/BouncyElf/differ@latest
differ <config_file>
  1. curl the differ server and watch differ's log

Configuration

The Config file is using yaml. You can check the demo config below.

# local proxy server setting
proxy_config:
 port: 8888
 enable_proxy_log: false
# the main remote server you want to compare as base standard
origin_scheme_and_host: 'https://example.com'
# the second remote server you want to check the diff
remote_scheme_and_host: 'https://example.com'
# the response headers you want to ignore when comparing the diff
# NOTE: highly recommand exclude `Date` header cause it will cause diff in most cases
exclude_headers:
 - Date
# async or sync call, optional
async_call: false

About

Differ proxy local request and forward request to 2 remote server and compare the response diff.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /