class Object
Public Instance Methods
form_hdr(conn)
click to toggle source
# File lib/cnos-rbapi/connect.rb, line 19 def form_hdr(conn) hdr = {} tmp_ckie = 'auth_cookie='+ conn.getCookie + ';user=' + conn.getUser + '; Max-Age=3600; Path=/' hdr['Cookie'] = tmp_ckie hdr['Content-type'] = 'application/json' return hdr end
form_url(conn, url)
click to toggle source
# File lib/cnos-rbapi/connect.rb, line 27 def form_url(conn, url) url = conn.getTransport + '://' + conn.getIp + ':' + conn.getPort + url return url end