Lines Matching full:boundary
21 boundary string
25 // NewWriter returns a new multipart Writer with a random boundary,
30 boundary: randomBoundary(),
34 // Boundary returns the Writer's boundary.
35 func (w *Writer) Boundary() string {
36 return w.boundary
40 // boundary separator with an explicit value.
45 func (w *Writer) SetBoundary(boundary string) error {
50 if len(boundary) < 1 || len(boundary) > 69 {
51 return errors.New("mime: invalid boundary length")
53 for _, b := range boundary {
61 return errors.New("mime: invalid boundary character")
63 w.boundary = boundary
68 // multipart/form-data with this Writer's Boundary.
70 return "multipart/form-data; boundary=" + w.boundary
94 fmt.Fprintf(&b, "\r\n--%s\r\n", w.boundary)
96 fmt.Fprintf(&b, "--%s\r\n", w.boundary)
158 // boundary end line to the output.
166 _, err := fmt.Fprintf(w.w, "\r\n--%s--\r\n", w.boundary)