Blame view

sources/3rdparty/guzzle/http/Guzzle/Http/Message/Header/HeaderInterface.php 1.83 KB
6d9380f96   Cédric Dupont   Update sources OC...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
  <?php
  
  namespace Guzzle\Http\Message\Header;
  
  use Guzzle\Common\ToArrayInterface;
  
  interface HeaderInterface extends ToArrayInterface, \Countable, \IteratorAggregate
  {
      /**
       * Convert the header to a string
       *
       * @return string
       */
      public function __toString();
  
      /**
       * Add a value to the list of header values
       *
       * @param string $value Value to add to the header
       *
       * @return self
       */
      public function add($value);
  
      /**
       * Get the name of the header
       *
       * @return string
       */
      public function getName();
  
      /**
       * Change the name of the header
       *
       * @param string $name Name to change to
       *
       * @return self
       */
      public function setName($name);
  
      /**
       * Change the glue used to implode the values
       *
       * @param string $glue Glue used to implode multiple values
       *
       * @return self
       */
      public function setGlue($glue);
  
      /**
       * Get the glue used to implode multiple values into a string
       *
       * @return string
       */
      public function getGlue();
  
      /**
       * Check if the collection of headers has a particular value
       *
       * @param string $searchValue Value to search for
       *
       * @return bool
       */
      public function hasValue($searchValue);
  
      /**
       * Remove a specific value from the header
       *
       * @param string $searchValue Value to remove
       *
       * @return self
       */
      public function removeValue($searchValue);
  
      /**
       * Parse a header containing ";" separated data into an array of associative arrays representing the header
       * key value pair data of the header. When a parameter does not contain a value, but just contains a key, this
       * function will inject a key with a '' string value.
       *
       * @return array
       */
      public function parseParams();
  }