eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTTPCookie':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: HTTPCookie


Inheritance:

   Object
   |
   +--HTTPCookie

Package:
stx:goodies/webServer
Category:
Net-Communication-HTTP-Server
Version:
rev: 1.14 date: 2019/07/08 18:18:33
user: cg
file: HTTPCookie.st directory: goodies/webServer
module: stx stc-classLibrary: webServer
Author:
Christian Penk

Description:




Instance protocol:

accessing
o  expiration
return the value of the instance variable 'expiration' (automatically generated)

o  expiration: something
set the value of the instance variable 'expiration' (automatically generated)

o  httpOnly

o  httpOnly: something

o  maxAge

o  maxAge: something

o  name

o  name: something

o  name: nameArg value: valueArg path: pathArg expiration: expirationArg
set instance variables (automatically generated)

o  path
if I am still raw, cook me

o  path: something

o  rawValue

o  rawValue: something

o  secure

o  secure: something

o  value
if I am still raw, cook me

o  value: something

encoding & decoding
o  extractValueAndPathFromRawValue

o  extractValueFrom: aBase64EncodedString
|c s|

c := HTTPCookie new.
c value:#('aaa' 1234 '97e44aa0-c51c-11dd-8dc8-0018f3c28c0d' '/foo/bar/baz').
s := c htmlString.
c extractValueFrom:(s copyFrom:(s indexOf:$=)+1 to:(s indexOf:$;)-1).

o  htmlString
self new htmlString

(Timestamp
day:1 month:1 year:2010
hour:1 minutes:0 seconds:0)
printStringFormat:'%(DayName), %(day)-%(ShortMonthName)-%(year) %h:%m:%s GMT'

printing
o  printOn: aStream



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 10:03:08 GMT