forked from apache/incubator-stormcrawler
-
Notifications
You must be signed in to change notification settings - Fork 0
HTTPProtocol
Jake Dodd edited this page Mar 4, 2015
·
2 revisions
The knownMetadata
argument to HTTPProtocol.getProtocolOutput()
can affect the behavior of the protocol. The following metadata keys are detected by HTTPProtocol
and utilized in performing the request:
-
cachedLastModified
: If this key is present inknownMetadata
, the protocol will use the metadata value as the date for theIf-Modified-Since
header field of the HTTP request. If the key is not present, theIf-Modified-Since
field won't be added to the request header. -
cachedEtag
: If this key is present inknownMetadata
, the protocol will use the metadata value as the ETag for theIf-None-Match
header field of the HTTP request. If the key is not present, theIf-None-Match
field won't be added to the request header.