scratch – Blame information for rev 87
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
87 | office | 1 | <?php |
2 | |||
3 | namespace GuzzleHttp\Post; |
||
4 | |||
5 | use GuzzleHttp\Stream\StreamInterface; |
||
6 | |||
7 | /** |
||
8 | * Post file upload interface |
||
9 | */ |
||
10 | interface PostFileInterface |
||
11 | { |
||
12 | /** |
||
13 | * Get the name of the form field |
||
14 | * |
||
15 | * @return string |
||
16 | */ |
||
17 | public function getName(); |
||
18 | |||
19 | /** |
||
20 | * Get the full path to the file |
||
21 | * |
||
22 | * @return string |
||
23 | */ |
||
24 | public function getFilename(); |
||
25 | |||
26 | /** |
||
27 | * Get the content |
||
28 | * |
||
29 | * @return StreamInterface |
||
30 | */ |
||
31 | public function getContent(); |
||
32 | |||
33 | /** |
||
34 | * Gets all POST file headers. |
||
35 | * |
||
36 | * The keys represent the header name as it will be sent over the wire, and |
||
37 | * each value is a string. |
||
38 | * |
||
39 | * @return array Returns an associative array of the file's headers. |
||
40 | */ |
||
41 | public function getHeaders(); |
||
42 | } |