Response.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <?php
  2. namespace Swoole\Http;
  3. class Response
  4. {
  5. public $fd = 0;
  6. public $socket;
  7. public $header;
  8. public $cookie;
  9. public $trailer;
  10. /**
  11. * @return mixed
  12. */
  13. public function initHeader()
  14. {
  15. }
  16. /**
  17. * @return mixed
  18. */
  19. public function isWritable()
  20. {
  21. }
  22. /**
  23. * @return mixed
  24. */
  25. public function cookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null, $priority = null)
  26. {
  27. }
  28. /**
  29. * @return mixed
  30. */
  31. public function setCookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null, $priority = null)
  32. {
  33. }
  34. /**
  35. * @return mixed
  36. */
  37. public function rawcookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null, $priority = null)
  38. {
  39. }
  40. /**
  41. * @return mixed
  42. */
  43. public function status($http_code, $reason = null)
  44. {
  45. }
  46. /**
  47. * @return mixed
  48. */
  49. public function setStatusCode($http_code, $reason = null)
  50. {
  51. }
  52. /**
  53. * @return mixed
  54. */
  55. public function header($key, $value, $format = null)
  56. {
  57. }
  58. /**
  59. * @return mixed
  60. */
  61. public function setHeader($key, $value, $format = null)
  62. {
  63. }
  64. /**
  65. * @return mixed
  66. */
  67. public function trailer($key, $value)
  68. {
  69. }
  70. /**
  71. * @return mixed
  72. */
  73. public function ping()
  74. {
  75. }
  76. /**
  77. * @return mixed
  78. */
  79. public function goaway()
  80. {
  81. }
  82. /**
  83. * @return mixed
  84. */
  85. public function write($content)
  86. {
  87. }
  88. /**
  89. * @return mixed
  90. */
  91. public function end($content = null)
  92. {
  93. }
  94. /**
  95. * @return mixed
  96. */
  97. public function sendfile($filename, $offset = null, $length = null)
  98. {
  99. }
  100. /**
  101. * @return mixed
  102. */
  103. public function redirect($location, $http_code = null)
  104. {
  105. }
  106. /**
  107. * @return mixed
  108. */
  109. public function detach()
  110. {
  111. }
  112. /**
  113. * @return mixed
  114. */
  115. public static function create($server, $fd = null)
  116. {
  117. }
  118. /**
  119. * @return mixed
  120. */
  121. public function upgrade()
  122. {
  123. }
  124. /**
  125. * @return mixed
  126. */
  127. public function push($data, $opcode = null, $flags = null)
  128. {
  129. }
  130. /**
  131. * @return mixed
  132. */
  133. public function recv()
  134. {
  135. }
  136. /**
  137. * @return mixed
  138. */
  139. public function close()
  140. {
  141. }
  142. public function __destruct()
  143. {
  144. }
  145. }