cdp-dto.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. const CookieParam = {
  2. /**
  3. * Cookie name.
  4. */
  5. name: '',
  6. /**
  7. * Cookie value.
  8. */
  9. value: '',
  10. /**
  11. * The request-URI to associate with the setting of the cookie. This value can affect the
  12. * default domain, path, source port, and source scheme values of the created cookie.
  13. */
  14. url: undefined,
  15. /**
  16. * Cookie domain.
  17. */
  18. domain: undefined,
  19. /**
  20. * Cookie path.
  21. */
  22. path: undefined,
  23. /**
  24. * True if cookie is secure.
  25. */
  26. secure: undefined,
  27. /**
  28. * True if cookie is http-only.
  29. */
  30. httpOnly: undefined,
  31. /**
  32. * Cookie SameSite type.
  33. */
  34. sameSite: undefined,
  35. /**
  36. * Cookie expiration date, session cookie if not set
  37. */
  38. expires: undefined,
  39. /**
  40. * Cookie Priority.
  41. */
  42. priority: undefined,
  43. /**
  44. * True if cookie is SameParty.
  45. */
  46. sameParty: undefined,
  47. /**
  48. * Cookie source scheme type.
  49. */
  50. sourceScheme: undefined,
  51. /**
  52. * Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.
  53. * An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.
  54. * This is a temporary ability and it will be removed in the future.
  55. */
  56. sourcePort: undefined,
  57. }
  58. module.exports = {
  59. CookieParam,
  60. }