You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/types/gateway/action.go
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,10 @@ const (
15
15
16
16
// CacheSettings defines cache control options for outbound HTTP requests.
17
17
typeCacheSettingsstruct {
18
-
ReadFromCachebool`json:"readFromCache,omitempty"`// If true, attempt to read a cached response for the request
19
-
MaxAgeMsint32`json:"maxAgeMs,omitempty"`// Maximum age of a cached response in milliseconds.
18
+
MaxAgeMsint32`json:"maxAgeMs,omitempty"`// Maximum age of a cached response in milliseconds.
19
+
Storebool`json:"store,omitempty"`// If true, cache the response.
20
+
// Deprecated: positive MaxAgeMs implies ReadFromCache is true
21
+
ReadFromCachebool`json:"readFromCache,omitempty"`// If true, attempt to read a cached response for the request
20
22
}
21
23
22
24
// OutboundHTTPRequest represents an HTTP request to be sent from workflow node to the gateway.
@@ -31,13 +33,16 @@ type OutboundHTTPRequest struct {
31
33
// Maximum number of bytes to read from the response body. If the gateway max response size is smaller than this value, the gateway max response size will be used.
32
34
MaxResponseBytesuint32`json:"maxBytes,omitempty"`
33
35
WorkflowIDstring`json:"workflowId"`
36
+
WorkflowOwnerstring`json:"workflowOwner"`
34
37
}
35
38
39
+
// Hash generates a hash of the request for caching purposes.
40
+
// WorkflowID is not included in the hash because cached responses can be used across workflows
0 commit comments