Home | History | Annotate | Download | only in http

Lines Matching refs:Form

67 	// request's Content-Type is not multipart/form-data.
68 ErrNotMultipart = &ProtocolError{"request Content-Type isn't multipart/form-data"}
211 // It may be of the form "host:port". For international domain
212 // names, Host may be in Punycode or Unicode form. Use
222 // Form contains the parsed form data, including both the URL
223 // field's query parameters and the POST or PUT form data.
225 // The HTTP client ignores Form and uses Body instead.
226 Form url.Values
228 // PostForm contains the parsed form data from POST, PATCH,
235 // MultipartForm is the parsed multipart form, including file uploads.
238 MultipartForm *multipart.Form
408 var multipartByReader = &multipart.Form{
414 // multipart/form-data POST request, else returns nil and an error.
434 if err != nil || d != "multipart/form-data" {
481 // WriteProxy is like Write but writes the request in the form
649 // into Punycode form, if necessary.
1084 err = errors.New("missing form body")
1095 case ct == "application/x-www-form-urlencoded":
1117 case ct == "multipart/form-data":
1128 // ParseForm populates r.Form and r.PostForm.
1131 // r.Form.
1133 // For POST, PUT, and PATCH requests, it also parses the request body as a form
1134 // and puts the results into both r.PostForm and r.Form. Request body parameters
1135 // take precedence over URL query string values in r.Form.
1138 // application/x-www-form-urlencoded, the request Body is not read, and
1156 if r.Form == nil {
1158 r.Form = make(url.Values)
1159 copyValues(r.Form, r.PostForm)
1172 if r.Form == nil {
1173 r.Form = newValues
1175 copyValues(r.Form, newValues)
1181 // ParseMultipartForm parses a request body as multipart/form-data.
1191 if r.Form == nil {
1215 r.Form[k] = append(r.Form[k], v...)
1231 // then inspect Request.Form directly.
1233 if r.Form == nil {
1236 if vs := r.Form[key]; len(vs) > 0 {
1257 // FormFile returns the first file for the provided form key.