Home | History | Annotate | Download | only in multipart

Lines Matching refs:Writer

18 // A Writer generates multipart messages.
19 type Writer struct {
20 w io.Writer
25 // NewWriter returns a new multipart Writer with a random boundary,
27 func NewWriter(w io.Writer) *Writer {
28 return &Writer{
34 // Boundary returns the Writer's boundary.
35 func (w *Writer) Boundary() string {
39 // SetBoundary overrides the Writer's default randomly-generated
45 func (w *Writer) SetBoundary(boundary string) error {
68 // multipart/form-data with this Writer's Boundary.
69 func (w *Writer) FormDataContentType() string {
84 // Writer. After calling CreatePart, any previous part may no longer
86 func (w *Writer) CreatePart(header textproto.MIMEHeader) (io.Writer, error) {
129 func (w *Writer) CreateFormFile(fieldname, filename string) (io.Writer, error) {
140 func (w *Writer) CreateFormField(fieldname string) (io.Writer, error) {
148 func (w *Writer) WriteField(fieldname, value string) error {
159 func (w *Writer) Close() error {
171 mw *Writer