1: <?php
2:
3: 4: 5: 6:
7:
8: namespace Nette\Http;
9:
10:
11: 12: 13:
14: interface IResponse
15: {
16:
17: const PERMANENT = 2116333333;
18:
19:
20: const BROWSER = 0;
21:
22:
23: const
24: S100_CONTINUE = 100,
25: S101_SWITCHING_PROTOCOLS = 101,
26: S102_PROCESSING = 102,
27: S200_OK = 200,
28: S201_CREATED = 201,
29: S202_ACCEPTED = 202,
30: S203_NON_AUTHORITATIVE_INFORMATION = 203,
31: S204_NO_CONTENT = 204,
32: S205_RESET_CONTENT = 205,
33: S206_PARTIAL_CONTENT = 206,
34: S207_MULTI_STATUS = 207,
35: S208_ALREADY_REPORTED = 208,
36: S226_IM_USED = 226,
37: S300_MULTIPLE_CHOICES = 300,
38: S301_MOVED_PERMANENTLY = 301,
39: S302_FOUND = 302,
40: S303_SEE_OTHER = 303,
41: S303_POST_GET = 303,
42: S304_NOT_MODIFIED = 304,
43: S305_USE_PROXY = 305,
44: S307_TEMPORARY_REDIRECT = 307,
45: S308_PERMANENT_REDIRECT = 308,
46: S400_BAD_REQUEST = 400,
47: S401_UNAUTHORIZED = 401,
48: S402_PAYMENT_REQUIRED = 402,
49: S403_FORBIDDEN = 403,
50: S404_NOT_FOUND = 404,
51: S405_METHOD_NOT_ALLOWED = 405,
52: S406_NOT_ACCEPTABLE = 406,
53: S407_PROXY_AUTHENTICATION_REQUIRED = 407,
54: S408_REQUEST_TIMEOUT = 408,
55: S409_CONFLICT = 409,
56: S410_GONE = 410,
57: S411_LENGTH_REQUIRED = 411,
58: S412_PRECONDITION_FAILED = 412,
59: S413_REQUEST_ENTITY_TOO_LARGE = 413,
60: S414_REQUEST_URI_TOO_LONG = 414,
61: S415_UNSUPPORTED_MEDIA_TYPE = 415,
62: S416_REQUESTED_RANGE_NOT_SATISFIABLE = 416,
63: S417_EXPECTATION_FAILED = 417,
64: S421_MISDIRECTED_REQUEST = 421,
65: S422_UNPROCESSABLE_ENTITY = 422,
66: S423_LOCKED = 423,
67: S424_FAILED_DEPENDENCY = 424,
68: S426_UPGRADE_REQUIRED = 426,
69: S428_PRECONDITION_REQUIRED = 428,
70: S429_TOO_MANY_REQUESTS = 429,
71: S431_REQUEST_HEADER_FIELDS_TOO_LARGE = 431,
72: S451_UNAVAILABLE_FOR_LEGAL_REASONS = 451,
73: S500_INTERNAL_SERVER_ERROR = 500,
74: S501_NOT_IMPLEMENTED = 501,
75: S502_BAD_GATEWAY = 502,
76: S503_SERVICE_UNAVAILABLE = 503,
77: S504_GATEWAY_TIMEOUT = 504,
78: S505_HTTP_VERSION_NOT_SUPPORTED = 505,
79: S506_VARIANT_ALSO_NEGOTIATES = 506,
80: S507_INSUFFICIENT_STORAGE = 507,
81: S508_LOOP_DETECTED = 508,
82: S510_NOT_EXTENDED = 510,
83: S511_NETWORK_AUTHENTICATION_REQUIRED = 511;
84:
85: 86: 87: 88: 89:
90: function setCode($code);
91:
92: 93: 94: 95:
96: function getCode();
97:
98: 99: 100: 101: 102: 103:
104: function ($name, $value);
105:
106: 107: 108: 109: 110: 111:
112: function ($name, $value);
113:
114: 115: 116: 117: 118: 119:
120: function setContentType($type, $charset = null);
121:
122: 123: 124: 125: 126: 127:
128: function redirect($url, $code = self::S302_FOUND);
129:
130: 131: 132: 133: 134:
135: function setExpiration($seconds);
136:
137: 138: 139: 140:
141: function isSent();
142:
143: 144: 145: 146: 147: 148:
149: function ($header, $default = null);
150:
151: 152: 153: 154:
155: function ();
156:
157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167:
168: function setCookie($name, $value, $expire, $path = null, $domain = null, $secure = null, $httpOnly = null);
169:
170: 171: 172: 173: 174: 175: 176: 177:
178: function deleteCookie($name, $path = null, $domain = null, $secure = null);
179: }
180: