Skip to content

Instantly share code, notes, and snippets.

@andrewsomething
Forked from Marak/echoHttpRequest.js
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save andrewsomething/d40c044d4e7b44a63ea4 to your computer and use it in GitHub Desktop.

Select an option

Save andrewsomething/d40c044d4e7b44a63ea4 to your computer and use it in GitHub Desktop.

Revisions

  1. @Marak Marak revised this gist Nov 12, 2014. 1 changed file with 0 additions and 6 deletions.
    6 changes: 0 additions & 6 deletions echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -22,9 +22,3 @@ module['exports'].schema = {
    "type": "string"
    }
    };


    // The Theme and Presenter will default to the following files if not set
    // see: http://hook.io/themes
    module['exports'].theme = "http://hook.io/themes/debug/index.html";
    module['exports'].presenter = "http://hook.io/themes/debug/index.js";
  2. @Marak Marak revised this gist Nov 12, 2014. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -21,4 +21,10 @@ module['exports'].schema = {
    "param2": {
    "type": "string"
    }
    };
    };


    // The Theme and Presenter will default to the following files if not set
    // see: http://hook.io/themes
    module['exports'].theme = "http://hook.io/themes/debug/index.html";
    module['exports'].presenter = "http://hook.io/themes/debug/index.js";
  3. @Marak Marak revised this gist Nov 12, 2014. 1 changed file with 1 addition and 6 deletions.
    7 changes: 1 addition & 6 deletions echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -21,9 +21,4 @@ module['exports'].schema = {
    "param2": {
    "type": "string"
    }
    };

    // The Theme and Presenter will default to the following files if not set
    // see: http://hook.io/themes
    module['exports'].theme = "http://hook.io/themes/debug/index.html";
    module['exports'].presenter = "http://hook.io/themes/debug/index.js";
    };
  4. @Marak Marak revised this gist Nov 10, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -25,5 +25,5 @@ module['exports'].schema = {

    // The Theme and Presenter will default to the following files if not set
    // see: http://hook.io/themes
    //module['exports'].theme = "http://hook.io/themes/debug/index.html";
    //module['exports'].presenter = "http://hook.io/themes/debug/index.js";
    module['exports'].theme = "http://hook.io/themes/debug/index.html";
    module['exports'].presenter = "http://hook.io/themes/debug/index.js";
  5. @Marak Marak revised this gist Nov 10, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -25,5 +25,5 @@ module['exports'].schema = {

    // The Theme and Presenter will default to the following files if not set
    // see: http://hook.io/themes
    module['exports'].theme = "http://hook.io/themes/debug/index.html";
    module['exports'].presenter = "http://hook.io/themes/debug/index.js";
    //module['exports'].theme = "http://hook.io/themes/debug/index.html";
    //module['exports'].presenter = "http://hook.io/themes/debug/index.js";
  6. @Marak Marak revised this gist Nov 8, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -23,7 +23,7 @@ module['exports'].schema = {
    }
    };

    // The Theme and Presenter will default to the following follows if not set
    // The Theme and Presenter will default to the following files if not set
    // see: http://hook.io/themes
    module['exports'].theme = "http://hook.io/themes/debug/index.html";
    module['exports'].presenter = "http://hook.io/themes/debug/index.js";
  7. @Marak Marak revised this gist Nov 7, 2014. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -21,4 +21,9 @@ module['exports'].schema = {
    "param2": {
    "type": "string"
    }
    };
    };

    // The Theme and Presenter will default to the following follows if not set
    // see: http://hook.io/themes
    module['exports'].theme = "http://hook.io/themes/debug/index.html";
    module['exports'].presenter = "http://hook.io/themes/debug/index.js";
  8. @Marak Marak revised this gist Nov 5, 2014. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,13 @@ module['exports'] = function echoHttp (hook) {

    hook.res.end(JSON.stringify(hook.params, true, 2));

    };

    module['exports'].schema = {
    "param1": {
    "type": "string"
    },
    "param2": {
    "type": "string"
    }
    };
  9. @Marak Marak revised this gist Oct 31, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,8 @@ module['exports'] = function echoHttp (hook) {
    hook.debug(hook.req.path);

    hook.debug(hook.req.method);

    hook.debug(hook.env);

    hook.res.end(JSON.stringify(hook.params, true, 2));

  10. @Marak Marak revised this gist Oct 29, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    module['exports'] = function echoHttp (hook) {

    hook.debug('Debug messages are sent to the debug console.');
    hook.debug("Debug messages are sent to the debug console");

    hook.debug(hook.params);

  11. @Marak Marak revised this gist Oct 29, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -4,9 +4,9 @@ module['exports'] = function echoHttp (hook) {

    hook.debug(hook.params);

    //hook.debug(hook.req.path);
    hook.debug(hook.req.path);

    //hook.debug(hook.req.method);
    hook.debug(hook.req.method);

    hook.res.end(JSON.stringify(hook.params, true, 2));

  12. @Marak Marak revised this gist Oct 29, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -4,9 +4,9 @@ module['exports'] = function echoHttp (hook) {

    hook.debug(hook.params);

    hook.debug(hook.req.path);
    //hook.debug(hook.req.path);

    hook.debug(hook.req.method);
    //hook.debug(hook.req.method);

    hook.res.end(JSON.stringify(hook.params, true, 2));

  13. @Marak Marak revised this gist Oct 29, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    module['exports'] = function echoHttp (hook) {

    hook.debug('Debug messages are sent to the debug console.');

    hook.debug(hook.params);

    hook.debug(hook.req.path);
  14. @Marak Marak created this gist Oct 29, 2014.
    11 changes: 11 additions & 0 deletions echoHttpRequest.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    module['exports'] = function echoHttp (hook) {

    hook.debug(hook.params);

    hook.debug(hook.req.path);

    hook.debug(hook.req.method);

    hook.res.end(JSON.stringify(hook.params, true, 2));

    };