Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

26 lines
669B

  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\web;
  8. /**
  9. * Interface for classes that parse the raw request body into a parameters array.
  10. *
  11. * @author Dan Schmidt <danschmidt5189@gmail.com>
  12. * @since 2.0
  13. */
  14. interface RequestParserInterface
  15. {
  16. /**
  17. * Parses a HTTP request body.
  18. * @param string $rawBody the raw HTTP request body.
  19. * @param string $contentType the content type specified for the request body.
  20. * @return array parameters parsed from the request body
  21. */
  22. public function parse($rawBody, $contentType);
  23. }