~ballot/wordpress/openstack-objectstorage-breaking-insight

« back to all changes in this revision

Viewing changes to vendor/guzzlehttp/guzzle/src/Post/PostFileInterface.php

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}