1 | <?php |
||
24 | class Fastly extends HttpProxyClient implements TagCapable, PurgeCapable, ClearCapable |
||
25 | { |
||
26 | /** |
||
27 | * @internal |
||
28 | */ |
||
29 | const HTTP_METHOD_PURGE = 'PURGE'; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | * |
||
34 | * @see https://docs.fastly.com/api/purge#purge_db35b293f8a724717fcf25628d713583 |
||
35 | */ |
||
36 | public function invalidateTags(array $tags) |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | * |
||
64 | * @see https://docs.fastly.com/api/purge#soft_purge_0c4f56f3d68e9bed44fb8b638b78ea36 |
||
65 | * @see https://docs.fastly.com/guides/purging/authenticating-api-purge-requests#purging-urls-with-an-api-token |
||
66 | */ |
||
67 | public function purge($url, array $headers = []) |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | * |
||
87 | * @see https://docs.fastly.com/api/purge#purge_bee5ed1a0cfd541e8b9f970a44718546 |
||
88 | * |
||
89 | * Warning: |
||
90 | * - Does not support soft purge, for that use an "all" key. |
||
91 | * - Requires a API token of a user with at least Engineer permissions. |
||
92 | */ |
||
93 | public function clear() |
||
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | protected function configureOptions() |
||
129 | |||
130 | } |
||
131 |