http_proxy

http proxy with Elixir. wait request with multi port and forward to each URIs

MIT License

Downloads
7.8K
Stars
59

Bot releases are hidden (Show)

http_proxy -

Published by KazuCocoa almost 9 years ago

Exporting file into mappings / __files with record mode

e.g.

  1. When record a request and a response
  2. Then two files are saved into following files
    • test/example/8080/mappings/request_file.json
    • test/example/8080/__files/request_file.json
http_proxy -

Published by KazuCocoa almost 9 years ago

http_proxy -

Published by KazuCocoa almost 9 years ago

http_proxy -

Published by KazuCocoa almost 9 years ago

http_proxy -

Published by KazuCocoa almost 9 years ago

Support record/play request for each proxy.
Please read readme or http://hexdocs.pm/http_proxy/0.3.0/extra-api-reference.html

You should set configurations if you would like to use play/record.

http_proxy -

Published by KazuCocoa almost 9 years ago

arrange format like VRC one.

  • Example
{
  "request": {
    "headers": [],
    "method": "GET",
    "options": {
      "aspect": "query_params"
    },
    "remote": "127.0.0.1",
    "request_body": "",
    "url": "http://localhost:8080/hoge/inu?email=neko&pass=123"
  },
  "response": {
    "body": "<HTML><HEAD><meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">\n<TITLE>301 Moved</TITLE></HEAD><BODY>\n<H1>301 Moved</H1>\nThe document has moved\n<A HREF=\"http://www.google.com/hoge/inu?email=neko&amp;pass=123\">here</A>.\r\n</BODY></HTML>\r\n",
    "cookies": {},
    "headers": {
      "Cache-Control": "public, max-age=2592000",
      "Content-Length": "251",
      "Content-Type": "text/html; charset=UTF-8",
      "Date": "Sat, 21 Nov 2015 00:37:38 GMT",
      "Expires": "Mon, 21 Dec 2015 00:37:38 GMT",
      "Location": "http://www.google.com/hoge/inu?email=neko&pass=123",
      "Server": "sffe",
      "X-Content-Type-Options": "nosniff",
      "X-XSS-Protection": "1; mode=block"
    },
    "status_code": 301
  }
}
http_proxy -

Published by KazuCocoa almost 9 years ago

support record request and export into JSON

http_proxy -

Published by KazuCocoa almost 9 years ago

initial release

Package Rankings
Top 18.59% on Hex.pm
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
codecov