-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHeaders.php
53 lines (43 loc) · 1.26 KB
/
Headers.php
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
<?php
/*
* (c) Jérémy Marodon <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Th3Mouk\EventStoreClient;
class Headers
{
/**
* The expected version of the stream (allows optimistic concurrency)
*/
const EXPECTED_VERSION = 'ES-ExpectedVersion';
/**
* Whether to resolve linkTos in stream
*/
const RESOLVE_LINK_TO = 'ES-ResolveLinkTo';
/**
* Whether this operation needs to run on the master node
*/
const REQUIRES_MASTER = 'ES-RequiresMaster';
/**
* Allows a trusted intermediary to handle authentication
*/
const TRUSTED_AUTH = 'ES-TrustedAuth';
/**
* Instructs the server to do a long poll operation on a stream read
*/
const LONG_POLL = 'ES-LongPoll';
/**
* Instructs the server to hard delete the stream when deleting as opposed
* to the default soft delete
*/
const HARD_DELETE = 'ES-HardDelete';
/**
* Instructs the server the event type associated to a posted body
*/
const EVENT_TYPE = 'ES-EventType';
/**
* Instructs the server the event id associated to a posted body
*/
const EVENT_ID = 'ES-EventId';
}