$24 GRAYBYTE WORDPRESS FILE MANAGER $76

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/lib/node_modules/npm/node_modules/request/lib/

HOME
Current File : /usr/lib/node_modules/npm/node_modules/request/lib//cookies.js
'use strict'

var tough = require('tough-cookie')

var Cookie = tough.Cookie
var CookieJar = tough.CookieJar

exports.parse = function (str) {
  if (str && str.uri) {
    str = str.uri
  }
  if (typeof str !== 'string') {
    throw new Error('The cookie function only accepts STRING as param')
  }
  return Cookie.parse(str, {loose: true})
}

// Adapt the sometimes-Async api of tough.CookieJar to our requirements
function RequestJar (store) {
  var self = this
  self._jar = new CookieJar(store, {looseMode: true})
}
RequestJar.prototype.setCookie = function (cookieOrStr, uri, options) {
  var self = this
  return self._jar.setCookieSync(cookieOrStr, uri, options || {})
}
RequestJar.prototype.getCookieString = function (uri) {
  var self = this
  return self._jar.getCookieStringSync(uri)
}
RequestJar.prototype.getCookies = function (uri) {
  var self = this
  return self._jar.getCookiesSync(uri)
}

exports.jar = function (store) {
  return new RequestJar(store)
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jan 1970 8.00 AM
root / root
0
auth.js
4.662 KB
10 Mar 2021 9.36 PM
root / root
0644
cookies.js
0.951 KB
10 Mar 2021 9.36 PM
root / root
0644
getProxyFromURI.js
2.188 KB
10 Mar 2021 9.36 PM
root / root
0644
har.js
4.693 KB
10 Mar 2021 9.36 PM
root / root
0644
hawk.js
2.686 KB
10 Mar 2021 9.36 PM
root / root
0644
helpers.js
1.378 KB
10 Mar 2021 9.36 PM
root / root
0644
multipart.js
2.611 KB
10 Mar 2021 9.36 PM
root / root
0644
oauth.js
4.039 KB
10 Mar 2021 9.36 PM
root / root
0644
querystring.js
1.303 KB
10 Mar 2021 9.36 PM
root / root
0644
redirect.js
4.526 KB
10 Mar 2021 9.36 PM
root / root
0644
tunnel.js
4.313 KB
10 Mar 2021 9.36 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF