Module: Rho::AsyncHttp

Defined in:
lib/framework/autocomplete/Rho.rb,
lib/commonAPI/coreapi/RhoNetworkApi.rb

Class Method Summary collapse

Class Method Details

.cancel(callback = '*') ⇒ Object



11
12
# File 'lib/framework/autocomplete/Rho.rb', line 11

def self.cancel(rest)
end

.check_ssl_verify_peer(args) ⇒ Object



17
18
# File 'lib/framework/autocomplete/Rho.rb', line 17

def self.check_ssl_verify_peer(args)
end

.do_request(rest) ⇒ Object



9
10
# File 'lib/framework/autocomplete/Rho.rb', line 9

def self.do_request(rest)
end

.download_file(args) ⇒ Object



25
26
# File 'lib/framework/autocomplete/Rho.rb', line 25

def self.download_file(args)
end

.get(args) ⇒ Object



21
22
# File 'lib/framework/autocomplete/Rho.rb', line 21

def self.get(args)
end

.make_auth_header(args) ⇒ Object



13
14
# File 'lib/framework/autocomplete/Rho.rb', line 13

def self.make_auth_header(args)
end

.post(args) ⇒ Object



23
24
# File 'lib/framework/autocomplete/Rho.rb', line 23

def self.post(args)
end

.preprocess_headers(args) ⇒ Object



15
16
# File 'lib/framework/autocomplete/Rho.rb', line 15

def self.preprocess_headers(args)
end

.process_auth_header(args) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/commonAPI/coreapi/RhoNetworkApi.rb', line 4

def self.process_auth_header(args)
    auth = args[:authentication] if args.has_key?(:authentication)
    auth = args [:authorization] if args.has_key?(:authorization)

    if ( auth && auth.is_a?( Hash ) && auth[:type] )
        args[:authType] = auth[:type]
        args[:authUser] = auth[:username]
        args[:authPassword] = auth[:password]        
    end
            
    args.delete(:authentication)
    args.delete(:authorization)
end

.process_result(res, callback) ⇒ Object



19
20
# File 'lib/framework/autocomplete/Rho.rb', line 19

def self.process_result(res,callback)
end

.upload_file(args) ⇒ Object



27
28
# File 'lib/framework/autocomplete/Rho.rb', line 27

def self.upload_file(args)
end