This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Flags] | |
| public enum FilePermissions : uint | |
| { | |
| None = 1, | |
| Read = 2, | |
| Write = 4, | |
| ReadWrite = Read | Write, | |
| Delete = 8, | |
| Full = Read | Write | Delete | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class FilePermissions | |
| { | |
| public const int None = 1; | |
| public const int Read = 2; | |
| public const int Write = 4; | |
| public const int ReadWrite = Read | Write; | |
| public const int Delete = 8; | |
| public const int Full = Read | Write | Delete; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // represented in binary as 00000000000000000000000000000001 | |
| int one = 1; | |
| // represented in binary as 00000000000000000000000000000010 | |
| int two = 2; | |
| // represented in binary as 00000000000000000000000000000011 | |
| int three = one | two; | |
| // represented in binary as 00000000000000000000000000000100 | |
| int four = 4; | |
| // represented in binary as 00000000000000000000000000000000 | |
| int zero = four & three; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public enum FilePermissions | |
| { | |
| None, | |
| Read, | |
| Write, | |
| ReadWrite, | |
| Delete, | |
| Full | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The Request: | |
| OPTIONS /blog/post HTTP 1.1 | |
| HOST: example.com | |
| The Response: | |
| 200 OK | |
| Allow: POST |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET /blog/posts HTTP 1.1 | |
| HOST: example.com | |
| Content-Type: application/atom+xml | |
| Content-Length: ... | |
| <?xml version="1.0"?> | |
| <feed xmlns="http://www.w3.org/2005/Atom"> | |
| <title> | |
| Blog Posts | |
| </title> |
NewerOlder