├── .gitignore ├── Changes ├── MANIFEST ├── MANIFEST.SKIP ├── META.yml ├── Makefile.PL ├── README.md ├── backlog.md ├── bin └── swat ├── examples ├── anatomy │ ├── FOO │ │ └── BARs │ │ │ ├── hook.pm │ │ │ └── post.txt │ ├── FOOs │ │ ├── get.txt │ │ └── hook.pm │ ├── host │ └── swat.ini ├── block-of-text │ ├── get.txt │ ├── hook.pm │ └── host ├── google │ ├── get.txt │ ├── host │ └── swat.ini ├── hooks │ ├── host │ ├── lib │ │ └── Foo.pm │ ├── posts │ │ ├── hook.pm │ │ ├── post.txt │ │ └── swat.ini │ └── swat.ini ├── ignore-http-err │ ├── foo │ │ ├── get.txt │ │ └── swat.ini │ ├── host │ └── swat.ini ├── ini-file │ ├── get.txt │ ├── hook.pm │ └── host ├── multilines │ ├── host │ ├── posts │ │ ├── post.txt │ │ └── swat.ini │ └── swat.ini ├── my-app │ ├── hello │ │ ├── get.txt │ │ ├── hook.pm │ │ └── world │ │ │ ├── get.txt │ │ │ └── hook.pm │ ├── host │ └── swat.ini ├── post-request │ ├── host │ ├── posts │ │ ├── post.txt │ │ └── swat.ini │ └── swat.ini ├── response-processor │ ├── get.txt │ ├── hook.pm │ └── host ├── response-processor2 │ ├── get.txt │ ├── hook.pm │ └── host ├── subtests │ ├── baz │ │ ├── get.txt │ │ └── hook.pm │ ├── foo │ │ ├── bar │ │ │ ├── get.txt │ │ │ └── hook.pm │ │ ├── get.txt │ │ └── hook.pm │ ├── host │ └── swat.ini ├── swat-generators-sqlite3 │ ├── README.md │ ├── host │ ├── posts │ │ ├── post.txt │ │ └── swat.ini │ └── swat.ini ├── swat-generators-with-lib │ ├── host │ ├── lib │ │ └── Foo.pm │ ├── posts │ │ ├── post.txt │ │ └── swat.ini │ └── swat.ini ├── swat-generators │ ├── host │ ├── posts │ │ ├── post.txt │ │ └── swat.ini │ └── swat.ini ├── swat-meta-stories │ ├── bar │ │ ├── get.txt │ │ ├── hook.pm │ │ └── swat.ini │ ├── baz │ │ ├── get.txt │ │ ├── hook.pm │ │ └── swat.ini │ ├── foo │ │ ├── hook.pm │ │ └── meta.txt │ ├── host │ └── swat.ini ├── swat-modules-data-share │ ├── bar │ │ └── swat.ini │ ├── foo │ │ ├── get.txt │ │ ├── hook.pm │ │ └── swat.ini │ ├── get.txt │ ├── hook.pm │ └── host ├── swat-modules │ ├── data │ │ ├── get.txt │ │ └── hook.pm │ ├── host │ ├── son │ │ ├── get.txt │ │ ├── hook.pm │ │ └── swat.ini │ ├── swat.ini │ └── wife │ │ ├── get.txt │ │ ├── hook.pm │ │ └── swat.ini ├── swat-modules2 │ ├── bar │ │ ├── get.txt │ │ ├── hook.pm │ │ └── swat.ini │ ├── foo │ │ ├── get.txt │ │ ├── hook.pm │ │ └── swat.ini │ ├── host │ ├── main │ │ ├── get.txt │ │ └── hook.pm │ └── swat.ini └── within-mode │ ├── get.txt │ ├── hook.pm │ └── host ├── inc └── Module │ ├── Install.pm │ └── Install │ ├── Base.pm │ ├── Can.pm │ ├── Fetch.pm │ ├── Makefile.pm │ ├── Metadata.pm │ ├── Scripts.pm │ ├── Win32.pm │ └── WriteAll.pm ├── intro.md ├── lib ├── swat.pm └── swat │ └── story.pm ├── run_examples.bash ├── sparrowfile ├── stuff ├── get.txt ├── host ├── login │ ├── get.txt │ ├── post.txt │ └── swat.ini ├── myapp.pl ├── restricted │ └── zone │ │ ├── get.txt │ │ ├── hook.pm │ │ └── swat.ini └── swat.ini ├── suite.ini ├── suite.yaml └── t ├── data ├── test.db └── test.sql └── swat.t /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/.gitignore -------------------------------------------------------------------------------- /Changes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/Changes -------------------------------------------------------------------------------- /MANIFEST: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/MANIFEST -------------------------------------------------------------------------------- /MANIFEST.SKIP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/MANIFEST.SKIP -------------------------------------------------------------------------------- /META.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/META.yml -------------------------------------------------------------------------------- /Makefile.PL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/Makefile.PL -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/README.md -------------------------------------------------------------------------------- /backlog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/backlog.md -------------------------------------------------------------------------------- /bin/swat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/bin/swat -------------------------------------------------------------------------------- /examples/anatomy/FOO/BARs/hook.pm: -------------------------------------------------------------------------------- 1 | set_response('OK'); 2 | -------------------------------------------------------------------------------- /examples/anatomy/FOO/BARs/post.txt: -------------------------------------------------------------------------------- 1 | OK 2 | -------------------------------------------------------------------------------- /examples/anatomy/FOOs/get.txt: -------------------------------------------------------------------------------- 1 | OK 2 | 3 | -------------------------------------------------------------------------------- /examples/anatomy/FOOs/hook.pm: -------------------------------------------------------------------------------- 1 | set_response('OK'); 2 | -------------------------------------------------------------------------------- /examples/anatomy/host: -------------------------------------------------------------------------------- 1 | 127.0.0.1 2 | 3 | -------------------------------------------------------------------------------- /examples/anatomy/swat.ini: -------------------------------------------------------------------------------- 1 | path=FOOs/GET 2 | -------------------------------------------------------------------------------- /examples/block-of-text/get.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/block-of-text/get.txt -------------------------------------------------------------------------------- /examples/block-of-text/hook.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/block-of-text/hook.pm -------------------------------------------------------------------------------- /examples/block-of-text/host: -------------------------------------------------------------------------------- 1 | http://google.com 2 | -------------------------------------------------------------------------------- /examples/google/get.txt: -------------------------------------------------------------------------------- 1 | 200 OK 2 | Google 3 | -------------------------------------------------------------------------------- /examples/google/host: -------------------------------------------------------------------------------- 1 | http://google.com 2 | -------------------------------------------------------------------------------- /examples/google/swat.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/google/swat.ini -------------------------------------------------------------------------------- /examples/hooks/host: -------------------------------------------------------------------------------- 1 | http://jsonplaceholder.typicode.com 2 | -------------------------------------------------------------------------------- /examples/hooks/lib/Foo.pm: -------------------------------------------------------------------------------- 1 | package Foo; 2 | 3 | sub my_list { [ qw( title body userId ) ] } 4 | 1 5 | -------------------------------------------------------------------------------- /examples/hooks/posts/hook.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/hooks/posts/hook.pm -------------------------------------------------------------------------------- /examples/hooks/posts/post.txt: -------------------------------------------------------------------------------- 1 | generator: my_list(); 2 | -------------------------------------------------------------------------------- /examples/hooks/posts/swat.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/hooks/posts/swat.ini -------------------------------------------------------------------------------- /examples/hooks/swat.ini: -------------------------------------------------------------------------------- 1 | path=posts/POST 2 | -------------------------------------------------------------------------------- /examples/ignore-http-err/foo/get.txt: -------------------------------------------------------------------------------- 1 | 404 2 | 3 | -------------------------------------------------------------------------------- /examples/ignore-http-err/foo/swat.ini: -------------------------------------------------------------------------------- 1 | try_num=1 2 | ignore_http_err=1 3 | 4 | -------------------------------------------------------------------------------- /examples/ignore-http-err/host: -------------------------------------------------------------------------------- 1 | yandex.ru 2 | 3 | 4 | -------------------------------------------------------------------------------- /examples/ignore-http-err/swat.ini: -------------------------------------------------------------------------------- 1 | path=foo/GET 2 | -------------------------------------------------------------------------------- /examples/ini-file/get.txt: -------------------------------------------------------------------------------- 1 | foo: 1 2 | bar: 2 3 | -------------------------------------------------------------------------------- /examples/ini-file/hook.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/ini-file/hook.pm -------------------------------------------------------------------------------- /examples/ini-file/host: -------------------------------------------------------------------------------- 1 | 127.0.0.1 2 | 3 | -------------------------------------------------------------------------------- /examples/multilines/host: -------------------------------------------------------------------------------- 1 | http://jsonplaceholder.typicode.com 2 | -------------------------------------------------------------------------------- /examples/multilines/posts/post.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/multilines/posts/post.txt -------------------------------------------------------------------------------- /examples/multilines/posts/swat.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/multilines/posts/swat.ini -------------------------------------------------------------------------------- /examples/multilines/swat.ini: -------------------------------------------------------------------------------- 1 | path=posts/POST 2 | -------------------------------------------------------------------------------- /examples/my-app/hello/get.txt: -------------------------------------------------------------------------------- 1 | 200 OK 2 | -------------------------------------------------------------------------------- /examples/my-app/hello/hook.pm: -------------------------------------------------------------------------------- 1 | set_response('200 OK'); 2 | -------------------------------------------------------------------------------- /examples/my-app/hello/world/get.txt: -------------------------------------------------------------------------------- 1 | 200 OK 2 | -------------------------------------------------------------------------------- /examples/my-app/hello/world/hook.pm: -------------------------------------------------------------------------------- 1 | set_response('200 OK'); 2 | -------------------------------------------------------------------------------- /examples/my-app/host: -------------------------------------------------------------------------------- 1 | 127.0.0.1 2 | 3 | -------------------------------------------------------------------------------- /examples/my-app/swat.ini: -------------------------------------------------------------------------------- 1 | debug=1 2 | path=hello/GET 3 | -------------------------------------------------------------------------------- /examples/post-request/host: -------------------------------------------------------------------------------- 1 | http://jsonplaceholder.typicode.com 2 | -------------------------------------------------------------------------------- /examples/post-request/posts/post.txt: -------------------------------------------------------------------------------- 1 | 201 Created 2 | regexp: "id":\s+(\d+) 3 | -------------------------------------------------------------------------------- /examples/post-request/posts/swat.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/post-request/posts/swat.ini -------------------------------------------------------------------------------- /examples/post-request/swat.ini: -------------------------------------------------------------------------------- 1 | path=posts/POST 2 | -------------------------------------------------------------------------------- /examples/response-processor/get.txt: -------------------------------------------------------------------------------- 1 | hello swat! 2 | 3 | -------------------------------------------------------------------------------- /examples/response-processor/hook.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/response-processor/hook.pm -------------------------------------------------------------------------------- /examples/response-processor/host: -------------------------------------------------------------------------------- 1 | 127.0.0.1 2 | 3 | -------------------------------------------------------------------------------- /examples/response-processor2/get.txt: -------------------------------------------------------------------------------- 1 | 2000 ok 2 | 3 | -------------------------------------------------------------------------------- /examples/response-processor2/hook.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/response-processor2/hook.pm -------------------------------------------------------------------------------- /examples/response-processor2/host: -------------------------------------------------------------------------------- 1 | google.ru 2 | -------------------------------------------------------------------------------- /examples/subtests/baz/get.txt: -------------------------------------------------------------------------------- 1 | BAZ OK 2 | 3 | -------------------------------------------------------------------------------- /examples/subtests/baz/hook.pm: -------------------------------------------------------------------------------- 1 | set_response('BAZ OK'); 2 | -------------------------------------------------------------------------------- /examples/subtests/foo/bar/get.txt: -------------------------------------------------------------------------------- 1 | FOO BAR OK 2 | 3 | -------------------------------------------------------------------------------- /examples/subtests/foo/bar/hook.pm: -------------------------------------------------------------------------------- 1 | set_response('FOO BAR OK'); 2 | -------------------------------------------------------------------------------- /examples/subtests/foo/get.txt: -------------------------------------------------------------------------------- 1 | FOO OK 2 | 3 | -------------------------------------------------------------------------------- /examples/subtests/foo/hook.pm: -------------------------------------------------------------------------------- 1 | set_response('FOO OK'); 2 | -------------------------------------------------------------------------------- /examples/subtests/host: -------------------------------------------------------------------------------- 1 | 127.0.0.1 2 | 3 | -------------------------------------------------------------------------------- /examples/subtests/swat.ini: -------------------------------------------------------------------------------- 1 | path=foo/bar/GET 2 | -------------------------------------------------------------------------------- /examples/swat-generators-sqlite3/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/swat-generators-sqlite3/README.md -------------------------------------------------------------------------------- /examples/swat-generators-sqlite3/host: -------------------------------------------------------------------------------- 1 | http://jsonplaceholder.typicode.com 2 | -------------------------------------------------------------------------------- /examples/swat-generators-sqlite3/posts/post.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/swat-generators-sqlite3/posts/post.txt -------------------------------------------------------------------------------- /examples/swat-generators-sqlite3/posts/swat.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/swat-generators-sqlite3/posts/swat.ini -------------------------------------------------------------------------------- /examples/swat-generators-sqlite3/swat.ini: -------------------------------------------------------------------------------- 1 | path=posts/POST 2 | -------------------------------------------------------------------------------- /examples/swat-generators-with-lib/host: -------------------------------------------------------------------------------- 1 | http://jsonplaceholder.typicode.com 2 | -------------------------------------------------------------------------------- /examples/swat-generators-with-lib/lib/Foo.pm: -------------------------------------------------------------------------------- 1 | package Foo; 2 | 3 | sub my_list { [ qw( title body userId ) ] } 4 | 1 5 | -------------------------------------------------------------------------------- /examples/swat-generators-with-lib/posts/post.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/swat-generators-with-lib/posts/post.txt -------------------------------------------------------------------------------- /examples/swat-generators-with-lib/posts/swat.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/swat-generators-with-lib/posts/swat.ini -------------------------------------------------------------------------------- /examples/swat-generators-with-lib/swat.ini: -------------------------------------------------------------------------------- 1 | path=posts/POST 2 | -------------------------------------------------------------------------------- /examples/swat-generators/host: -------------------------------------------------------------------------------- 1 | http://jsonplaceholder.typicode.com 2 | -------------------------------------------------------------------------------- /examples/swat-generators/posts/post.txt: -------------------------------------------------------------------------------- 1 | generator: [ qw( id title body userId ) ]; 2 | -------------------------------------------------------------------------------- /examples/swat-generators/posts/swat.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/swat-generators/posts/swat.ini -------------------------------------------------------------------------------- /examples/swat-generators/swat.ini: -------------------------------------------------------------------------------- 1 | path=posts/POST 2 | -------------------------------------------------------------------------------- /examples/swat-meta-stories/bar/get.txt: -------------------------------------------------------------------------------- 1 | BAR 2 | 3 | 4 | -------------------------------------------------------------------------------- /examples/swat-meta-stories/bar/hook.pm: -------------------------------------------------------------------------------- 1 | set_response('BAR'); 2 | 3 | 1; 4 | 5 | 6 | -------------------------------------------------------------------------------- /examples/swat-meta-stories/bar/swat.ini: -------------------------------------------------------------------------------- 1 | swat_module=1 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-meta-stories/baz/get.txt: -------------------------------------------------------------------------------- 1 | BAZ 2 | 3 | 4 | -------------------------------------------------------------------------------- /examples/swat-meta-stories/baz/hook.pm: -------------------------------------------------------------------------------- 1 | set_response('BAZ'); 2 | 3 | 1; 4 | 5 | 6 | -------------------------------------------------------------------------------- /examples/swat-meta-stories/baz/swat.ini: -------------------------------------------------------------------------------- 1 | swat_module=1 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-meta-stories/foo/hook.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/swat-meta-stories/foo/hook.pm -------------------------------------------------------------------------------- /examples/swat-meta-stories/foo/meta.txt: -------------------------------------------------------------------------------- 1 | this is 2 | meta 3 | story!!! 4 | 5 | -------------------------------------------------------------------------------- /examples/swat-meta-stories/host: -------------------------------------------------------------------------------- 1 | 127.0.0.1 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-meta-stories/swat.ini: -------------------------------------------------------------------------------- 1 | path=foo/META 2 | -------------------------------------------------------------------------------- /examples/swat-modules-data-share/bar/swat.ini: -------------------------------------------------------------------------------- 1 | swat_module=1 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-modules-data-share/foo/get.txt: -------------------------------------------------------------------------------- 1 | foo done 2 | -------------------------------------------------------------------------------- /examples/swat-modules-data-share/foo/hook.pm: -------------------------------------------------------------------------------- 1 | 2 | use strict; 3 | set_response('foo done'); 4 | push our @foo, "OK"; 5 | 6 | -------------------------------------------------------------------------------- /examples/swat-modules-data-share/foo/swat.ini: -------------------------------------------------------------------------------- 1 | swat_module=1 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-modules-data-share/get.txt: -------------------------------------------------------------------------------- 1 | done 2 | code: print (our @foo) 3 | -------------------------------------------------------------------------------- /examples/swat-modules-data-share/hook.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/swat-modules-data-share/hook.pm -------------------------------------------------------------------------------- /examples/swat-modules-data-share/host: -------------------------------------------------------------------------------- 1 | 127.0.0.1 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-modules/data/get.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/swat-modules/data/get.txt -------------------------------------------------------------------------------- /examples/swat-modules/data/hook.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/swat-modules/data/hook.pm -------------------------------------------------------------------------------- /examples/swat-modules/host: -------------------------------------------------------------------------------- 1 | 127.0.0.1 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-modules/son/get.txt: -------------------------------------------------------------------------------- 1 | 2 | jan 3 | 4 | 5 | -------------------------------------------------------------------------------- /examples/swat-modules/son/hook.pm: -------------------------------------------------------------------------------- 1 | set_response('jan'); 2 | 3 | 1; 4 | 5 | 6 | -------------------------------------------------------------------------------- /examples/swat-modules/son/swat.ini: -------------------------------------------------------------------------------- 1 | swat_module=1 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-modules/swat.ini: -------------------------------------------------------------------------------- 1 | path=data/GET 2 | -------------------------------------------------------------------------------- /examples/swat-modules/wife/get.txt: -------------------------------------------------------------------------------- 1 | 2 | julia 3 | 4 | 5 | -------------------------------------------------------------------------------- /examples/swat-modules/wife/hook.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/swat-modules/wife/hook.pm -------------------------------------------------------------------------------- /examples/swat-modules/wife/swat.ini: -------------------------------------------------------------------------------- 1 | swat_module=1 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-modules2/bar/get.txt: -------------------------------------------------------------------------------- 1 | I say: bar 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /examples/swat-modules2/bar/hook.pm: -------------------------------------------------------------------------------- 1 | set_response( "I say: ".(module_variable('message')) ); 2 | 3 | 1; 4 | 5 | -------------------------------------------------------------------------------- /examples/swat-modules2/bar/swat.ini: -------------------------------------------------------------------------------- 1 | swat_module=1 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-modules2/foo/get.txt: -------------------------------------------------------------------------------- 1 | I say: foo 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-modules2/foo/hook.pm: -------------------------------------------------------------------------------- 1 | set_response( "I say: ".(module_variable('message')) ); 2 | 1; 3 | 4 | -------------------------------------------------------------------------------- /examples/swat-modules2/foo/swat.ini: -------------------------------------------------------------------------------- 1 | swat_module=1 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-modules2/host: -------------------------------------------------------------------------------- 1 | 127.0.0.1 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-modules2/main/get.txt: -------------------------------------------------------------------------------- 1 | DONE 2 | 3 | -------------------------------------------------------------------------------- /examples/swat-modules2/main/hook.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/swat-modules2/main/hook.pm -------------------------------------------------------------------------------- /examples/swat-modules2/swat.ini: -------------------------------------------------------------------------------- 1 | path=main/GET 2 | -------------------------------------------------------------------------------- /examples/within-mode/get.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/within-mode/get.txt -------------------------------------------------------------------------------- /examples/within-mode/hook.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/examples/within-mode/hook.pm -------------------------------------------------------------------------------- /examples/within-mode/host: -------------------------------------------------------------------------------- 1 | 127.0.0.1 2 | 3 | -------------------------------------------------------------------------------- /inc/Module/Install.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/inc/Module/Install.pm -------------------------------------------------------------------------------- /inc/Module/Install/Base.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/inc/Module/Install/Base.pm -------------------------------------------------------------------------------- /inc/Module/Install/Can.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/inc/Module/Install/Can.pm -------------------------------------------------------------------------------- /inc/Module/Install/Fetch.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/inc/Module/Install/Fetch.pm -------------------------------------------------------------------------------- /inc/Module/Install/Makefile.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/inc/Module/Install/Makefile.pm -------------------------------------------------------------------------------- /inc/Module/Install/Metadata.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/inc/Module/Install/Metadata.pm -------------------------------------------------------------------------------- /inc/Module/Install/Scripts.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/inc/Module/Install/Scripts.pm -------------------------------------------------------------------------------- /inc/Module/Install/Win32.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/inc/Module/Install/Win32.pm -------------------------------------------------------------------------------- /inc/Module/Install/WriteAll.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/inc/Module/Install/WriteAll.pm -------------------------------------------------------------------------------- /intro.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/intro.md -------------------------------------------------------------------------------- /lib/swat.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/lib/swat.pm -------------------------------------------------------------------------------- /lib/swat/story.pm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/lib/swat/story.pm -------------------------------------------------------------------------------- /run_examples.bash: -------------------------------------------------------------------------------- 1 | set -e; 2 | 3 | for p in $( ls -1d examples/* ); do 4 | swat $p 5 | done 6 | 7 | 8 | -------------------------------------------------------------------------------- /sparrowfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melezhik/swat/HEAD/sparrowfile -------------------------------------------------------------------------------- /stuff/get.txt: -------------------------------------------------------------------------------- 1 | 200 OK 2 | hello world 3 | -------------------------------------------------------------------------------- /stuff/host: -------------------------------------------------------------------------------- 1 | 127.0.0.1:3000 2 | -------------------------------------------------------------------------------- /stuff/login/get.txt: -------------------------------------------------------------------------------- 1 | 200 OK 2 |