SleelaDoc API
HTML documentation for the SLeeLa standard library (/lib)
Home › Packages › http-4.0

Package http-4.0

This package contains 9 source unit(s) defining 9 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

Http40DownloadState #sleela 2.5 (lib/http-4.0/Http40DownloadState.sleela)

Http40DownloadState class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
LARGE_FILE_THRESHOLDlong LARGE_FILE_THRESHOLD = 52428800No description in source.
sessionIdString sessionId = ""No description in source.
dateTimeString dateTime = ""No description in source.
fileIdString fileId = ""No description in source.
fileNameString fileName = ""No description in source.
contentDigestString contentDigest = ""No description in source.
expectedFileVersionString expectedFileVersion = ""No description in source.
authorizedPrincipalIdString authorizedPrincipalId = ""No description in source.
authenticatedResumeTokenString authenticatedResumeToken = ""No description in source.
allChunksVerifiedboolean allChunksVerified = falseNo description in source.
finalDigestVerifiedboolean finalDigestVerified = falseNo description in source.
indexlong index = 0No description in source.
offsetlong offset = 0No description in source.
totalSizelong totalSize = 0No description in source.
chunkSizelong chunkSize = 0No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String session, String timestamp, String id, String name,No description in source.
requiresDownloadModeboolean requiresDownloadMode(long size)No description in source.
isValidboolean isValid()No description in source.
remainingByteslong remainingBytes()No description in source.
isCompleteboolean isComplete()No description in source.
hasResumeAuthorizationMetadataboolean hasResumeAuthorizationMetadata()No description in source.
mayCommitboolean mayCommit()These flags are policy inputs, not cryptographic proof. Native code must verify token, principal, chunk hashes, and final digest before setting them.

Http40Envelope #sleela 2.5 (lib/http-4.0/Http40Envelope.sleela)

Http40Envelope class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
versionint version = 4No description in source.
flagsint flags = 0No description in source.
serviceIdlong serviceId = 0No description in source.
operationIdlong operationId = 0No description in source.
requestIdlong requestId = 0No description in source.
noncelong nonce = 0No description in source.
logicalPortString logicalPort = ""No description in source.
digestAlgorithmString digestAlgorithm = "SIPHASH-2-4"No description in source.
digestString digest = ""No description in source.
intactxlong intactx = 0No description in source.
basketHexString basketHex = ""No description in source.
sessionIdString sessionId = ""No description in source.
streamIdlong streamId = 0No description in source.
sequencelong sequence = 0No description in source.
payloadLengthlong payloadLength = 0No description in source.
payloadString payload = ""No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
isValidboolean isValid()No description in source.
requiresIntegrityGateboolean requiresIntegrityGate()No description in source.

Http40Integrity #sleela 2.5 (lib/http-4.0/Http40Integrity.sleela)

Http40Integrity class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
digestVerifiedboolean digestVerified = falseNo description in source.
nonceFreshboolean nonceFresh = falseNo description in source.
intactxWithinThresholdboolean intactxWithinThreshold = falseNo description in source.
basketCanonicalboolean basketCanonical = falseNo description in source.
identityAuthorizedboolean identityAuthorized = falseNo description in source.
replayWindowInitializedboolean replayWindowInitialized = falseNo description in source.
nonceHighWaterlong nonceHighWater = 0No description in source.
acceptedPacketslong acceptedPackets = 0No description in source.
rejectedDigestlong rejectedDigest = 0No description in source.
rejectedReplaylong rejectedReplay = 0No description in source.
rejectedIntegritylong rejectedIntegrity = 0No description in source.
rejectedAuthorizationlong rejectedAuthorization = 0No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
recordDigestvoid recordDigest(boolean ok)No description in source.
acceptNonceboolean acceptNonce(long nonce)No description in source.
recordIntactxvoid recordIntactx(boolean ok)No description in source.
recordBasketvoid recordBasket(boolean ok)No description in source.
recordAuthorizationvoid recordAuthorization(boolean ok)No description in source.
permitsDispatchboolean permitsDispatch()No description in source.

Http40Limits #sleela 2.5 (lib/http-4.0/Http40Limits.sleela)

Http40Limits class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
maxEnvelopePayloadBytesint maxEnvelopePayloadBytes = 4096No description in source.
maxTextEnvelopeBytesint maxTextEnvelopeBytes = 16384No description in source.
maxServicesint maxServices = 64No description in source.
maxOperationsPerServiceint maxOperationsPerService = 64No description in source.
maxNameBytesint maxNameBytes = 63No description in source.
maxBasketItemsint maxBasketItems = 14No description in source.
macKeyBytesint macKeyBytes = 16No description in source.
digestBytesint digestBytes = 8No description in source.
intactxBytesint intactxBytes = 8No description in source.
nonceBytesint nonceBytes = 8No description in source.
basketBlockBytesint basketBlockBytes = 172No description in source.
requestTimeoutMillisint requestTimeoutMillis = 10000No description in source.
maxConcurrentStreamsint maxConcurrentStreams = 256No description in source.
maxHeaderBytesint maxHeaderBytes = 32768No description in source.
maxQueuedRequestsint maxQueuedRequests = 1024No description in source.
downloadResumeThresholdByteslong downloadResumeThresholdBytes = 52428800No description in source.
maxStreamByteslong maxStreamBytes = 268435456No description in source.
maxTotalBufferedByteslong maxTotalBufferedBytes = 67108864No description in source.
maxActiveTransfersint maxActiveTransfers = 8No description in source.
maxReassemblyByteslong maxReassemblyBytes = 16777216No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
validPayloadLengthboolean validPayloadLength(long n)No description in source.
validDictionarySizeboolean validDictionarySize(int services, int operations)No description in source.
validStreamCountboolean validStreamCount(int streams)No description in source.
validHeaderLengthboolean validHeaderLength(int bytes)No description in source.
validStreamBytesboolean validStreamBytes(long bytes)No description in source.
validBufferedBytesboolean validBufferedBytes(long bytes)No description in source.
validActiveTransfersboolean validActiveTransfers(int count)No description in source.
validReassemblyBytesboolean validReassemblyBytes(long bytes)No description in source.

Http40Negotiation #sleela 2.5 (lib/http-4.0/Http40Negotiation.sleela)

Http40Negotiation class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
localCapabilitiesint localCapabilities = 1No description in source.
peerCapabilitiesint peerCapabilities = 1No description in source.
selectedLevelint selectedLevel = 0No description in source.
peerGenerationint peerGeneration = 3No description in source.
authenticatedOfferboolean authenticatedOffer = falseNo description in source.
completedboolean completed = falseNo description in source.
allowLegacyboolean allowLegacy = falseFail closed by default; callers must explicitly authorize legacy fallback.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setCapabilitiesvoid setCapabilities(int localValue, int peerValue)No description in source.
setPeerGenerationvoid setPeerGeneration(int value)No description in source.
authenticateOffervoid authenticateOffer(boolean value)No description in source.
negotiateint negotiate()No description in source.
isCompleteboolean isComplete()No description in source.
selectedHttp40boolean selectedHttp40()No description in source.

Http40Request #sleela 2.5 (lib/http-4.0/Http40Request.sleela)

Http40Request class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
methodString method = "GET"No description in source.
targetString target = "/"No description in source.
carrierProtocolString carrierProtocol = "HTTP/1.1"No description in source.
logicalPortString logicalPort = ""No description in source.
sessionIdString sessionId = ""No description in source.
streamIdlong streamId = 0No description in source.
requestIdlong requestId = 0No description in source.
serviceIdlong serviceId = 0No description in source.
operationIdlong operationId = 0No description in source.
contentTypeString contentType = ""No description in source.
bodyLengthlong bodyLength = 0No description in source.
validboolean valid = trueNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setMethodvoid setMethod(String value)No description in source.
setTargetvoid setTarget(String value)No description in source.
setLogicalPortvoid setLogicalPort(String value)No description in source.
setSessionvoid setSession(String value, long stream)No description in source.
setOperationvoid setOperation(long service, long operation)No description in source.
setBodyvoid setBody(String type, long length)No description in source.
rejectvoid reject()No description in source.
isValidboolean isValid()No description in source.
isReadOnlyboolean isReadOnly()No description in source.

Http40Response #sleela 2.5 (lib/http-4.0/Http40Response.sleela)

Http40Response class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
statusint status = 200No description in source.
requestIdlong requestId = 0No description in source.
contentTypeString contentType = "text/plain; charset=utf-8"No description in source.
resultString result = ""No description in source.
sessionIdString sessionId = ""No description in source.
streamIdlong streamId = 0No description in source.
sequencelong sequence = 0No description in source.
endStreamboolean endStream = trueNo description in source.
integrityVerifiedboolean integrityVerified = falseNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setResultvoid setResult(int code, String body)No description in source.
correlatevoid correlate(long request, String session, long stream)No description in source.
isValidboolean isValid()No description in source.

Http40StreamState #sleela 2.5 (lib/http-4.0/Http40StreamState.sleela)

Http40StreamState class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
sessionIdString sessionId = ""No description in source.
streamIdlong streamId = 0No description in source.
nextReceiveSequencelong nextReceiveSequence = 0No description in source.
nextSendSequencelong nextSendSequence = 0No description in source.
receivedByteslong receivedBytes = 0No description in source.
sentByteslong sentBytes = 0No description in source.
openedboolean opened = falseNo description in source.
receiveClosedboolean receiveClosed = falseNo description in source.
sendClosedboolean sendClosed = falseNo description in source.
resetboolean reset = falseNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
openvoid open(String session, long id)No description in source.
acceptReceiveSequenceboolean acceptReceiveSequence(long sequence)No description in source.
acceptSendSequenceboolean acceptSendSequence(long sequence)No description in source.
addReceivedBytesboolean addReceivedBytes(long count)No description in source.
addSentBytesboolean addSentBytes(long count)No description in source.
closeReceivevoid closeReceive()No description in source.
closeSendvoid closeSend()No description in source.
resetStreamvoid resetStream()No description in source.
isClosedboolean isClosed()No description in source.

SLPackage #sleela 2.5 (lib/http-4.0/SLPackage.sleela)

SLPackage class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
packageNameString packageNameNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String name)No description in source.
nameString name()No description in source.
generationString generation()No description in source.
envelopeModelAvailableboolean envelopeModelAvailable()No description in source.
sessionStreamModelAvailableboolean sessionStreamModelAvailable()No description in source.
integrityGateModelAvailableboolean integrityGateModelAvailable()No description in source.
authorizationGateModelAvailableboolean authorizationGateModelAvailable()No description in source.
resumableDownloadModelAvailableboolean resumableDownloadModelAvailable()No description in source.
boundedStreamPolicyAvailableboolean boundedStreamPolicyAvailable()No description in source.
nativeHttp40TransportAvailableboolean nativeHttp40TransportAvailable()No description in source.
iETFHttp3TransportAvailableboolean iETFHttp3TransportAvailable()No description in source.
requiresProtectedTransportboolean requiresProtectedTransport()No description in source.
availableboolean available()No description in source.