-
Notifications
You must be signed in to change notification settings - Fork 186
/
StorageBrowserPolicy.yml
105 lines (96 loc) · 3.6 KB
/
StorageBrowserPolicy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
### YamlMime:TSType
name: StorageBrowserPolicy
uid: '@azure/storage-queue.StorageBrowserPolicy'
package: '@azure/storage-queue'
summary: >-
StorageBrowserPolicy will handle differences between Node.js and browser
runtime, including:
1. Browsers cache GET/HEAD requests by adding conditional headers such as
'IF_MODIFIED_SINCE'.
StorageBrowserPolicy is a policy used to add a timestamp query to GET/HEAD
request URL
thus avoid the browser cache.
2. Remove cookie header for security
3. Remove content-length header to avoid browsers warning
fullName: StorageBrowserPolicy
remarks: ''
isDeprecated: false
type: class
constructors:
- name: StorageBrowserPolicy(RequestPolicy, RequestPolicyOptionsLike)
uid: '@azure/storage-queue.StorageBrowserPolicy.constructor'
package: '@azure/storage-queue'
summary: Creates an instance of StorageBrowserPolicy.
remarks: ''
isDeprecated: false
syntax:
content: >-
new StorageBrowserPolicy(nextPolicy: RequestPolicy, options:
RequestPolicyOptionsLike)
parameters:
- id: nextPolicy
type: <xref uid="@azure/storage-queue.IHttpClient" />
description: ''
- id: options
type: <xref uid="@azure/storage-queue.RequestPolicyOptions" />
description: ''
inheritedMethods:
- name: log(HttpPipelineLogLevel, string)
uid: '@azure/storage-queue.StorageBrowserPolicy.log'
package: '@azure/storage-queue'
summary: >-
Attempt to log the provided message to the provided logger. If no logger
was provided or if
the log level does not meat the logger's threshold, then nothing will be
logged.
remarks: ''
isDeprecated: false
syntax:
content: 'function log(logLevel: HttpPipelineLogLevel, message: string)'
parameters:
- id: logLevel
type: <xref uid="@azure/core-http-compat.HttpPipelineLogLevel" />
description: The log level of this log.
- id: message
type: string
description: The message of this log.
inheritanceDescription: >-
<b>Inherited From</b>
[BaseRequestPolicy.log](xref:@azure/storage-queue.BaseRequestPolicy.log)
- name: shouldLog(HttpPipelineLogLevel)
uid: '@azure/storage-queue.StorageBrowserPolicy.shouldLog'
package: '@azure/storage-queue'
summary: Get whether or not a log with the provided log level should be logged.
remarks: ''
isDeprecated: false
syntax:
content: 'function shouldLog(logLevel: HttpPipelineLogLevel): boolean'
parameters:
- id: logLevel
type: <xref uid="@azure/core-http-compat.HttpPipelineLogLevel" />
description: The log level of the log that will be logged.
return:
description: Whether or not a log with the provided log level should be logged.
type: boolean
inheritanceDescription: >-
<b>Inherited From</b>
[BaseRequestPolicy.shouldLog](xref:@azure/storage-queue.BaseRequestPolicy.shouldLog)
methods:
- name: sendRequest(WebResourceLike)
uid: '@azure/storage-queue.StorageBrowserPolicy.sendRequest'
package: '@azure/storage-queue'
summary: Sends out request.
remarks: ''
isDeprecated: false
syntax:
content: 'function sendRequest(request: WebResourceLike): Promise<CompatResponse>'
parameters:
- id: request
type: <xref uid="@azure/storage-queue.WebResource" />
description: ''
return:
description: ''
type: >-
Promise<<xref uid="@azure/storage-queue.HttpOperationResponse"
/>>
extends: <xref uid="@azure/storage-queue.BaseRequestPolicy" />