Releases: KazuCocoa/http_proxy
Releases · KazuCocoa/http_proxy
0.4.0: Merge pull request #11 from KazuCocoa/separate_mapping_and_files
Exporting file into mappings
/ __files
with record mode
e.g.
- When record a request and a response
- Then two files are saved into following files
test/example/8080/mappings/request_file.json
test/example/8080/__files/request_file.json
0.3.4
0.3.3
0.3.2
0.3.0
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.
0.2.1
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&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
}
}