Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php declare(strict_types=1);
2/*
3 * This file is part of Aplus Framework HTTP Library.
4 *
5 * (c) Natan Felles <natanfelles@gmail.com>
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10namespace Framework\HTTP;
11
12use Stringable;
13
14/**
15 * Interface MessageInterface.
16 *
17 * @see https://developer.mozilla.org/en-US/docs/Web/HTTP
18 *
19 * @package http
20 */
21interface MessageInterface extends Stringable
22{
23    public function getProtocol() : string;
24
25    public function getStartLine() : string;
26
27    public function getHeader(string $name) : ?string;
28
29    public function hasHeader(string $name, string $value = null) : bool;
30
31    /**
32     * @return array<string,string>
33     */
34    public function getHeaders() : array;
35
36    public function getBody() : string;
37}