This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module EventMachine | |
module Middleware | |
require 'digest' | |
require 'securerandom' | |
require 'cgi' | |
class DigestAuth | |
def initialize(opts = {}) | |
@nonce_count = -1 | |
@opts = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
console.log("document loaded."); | |
$(document).ajaxStart(function() { | |
console.log(".ajaxStart fired!"); | |
}); | |
$(document).ajaxComplete(function() { | |
console.log(".ajaxComplete fired!"); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some weird stuff about NetHTTP, the timeout is twice what it should be. | |
To test things out: | |
$> gem install sinatra | |
$> ruby server.rb | |
$> ruby client.rb |
NewerOlder