Lines Matching full:nil
127 // For client requests a nil body means the request has no
131 // For server requests the Request Body is always non-nil
141 // For client requests, a value of 0 means unknown if Body is not nil.
188 // trailer keys, with nil values. (The client declares which trailers it
191 // can be read again and will contain non-nil values, if they were sent
195 // the trailer keys to later send. The values may be nil or their final
224 // otherwise it leaves the field nil.
260 return c, nil
262 return nil, ErrNoCookie
299 // multipart/form-data POST request, else returns nil and an error.
304 return nil, errors.New("http: MultipartReader called twice")
306 if r.MultipartForm != nil {
307 return nil, errors.New("http: multipart handled by ParseMultipartForm")
316 return nil, ErrNotMultipart
319 if err != nil || d != "multipart/form-data" {
320 return nil, ErrNotMultipart
324 return nil, ErrMissingBoundary
326 return multipart.NewReader(r.Body, boundary), nil
357 return r.write(w, false, nil)
367 return r.write(w, true, nil)
370 // extraHeaders may be nil
378 if req.URL == nil {
409 if err != nil {
415 if err != nil {
422 if req.Header != nil {
429 if err != nil {
436 if err != nil {
440 if err != nil {
445 if err != nil {
449 if extraHeaders != nil {
451 if err != nil {
457 if err != nil {
463 if err != nil {
467 if bw != nil {
470 return nil
524 if err != nil || major < 0 || major > Big {
528 if err != nil || minor < 0 || minor > Big {
548 if err != nil {
549 return nil, err
552 if !ok && body != nil {
565 if body != nil {
576 return req, nil
598 if err != nil {
632 if v := textprotoReaderPool.Get(); v != nil {
641 r.R = nil
653 if s, err = tp.ReadLine(); err != nil {
654 return nil, err
666 return nil, &badStringError{"malformed HTTP request", s}
670 return nil, &badStringError{"malformed HTTP version", req.Proto}
687 if req.URL, err = url.ParseRequestURI(rawurl); err != nil {
688 return nil, err
698 if err != nil {
699 return nil, err
721 if err != nil {
722 return nil, err
725 return req, nil
769 // too (it returns (0, nil) even at EOF).
807 if r.Body == nil {
827 if e != nil {
828 if err == nil {
838 if err == nil {
866 if r.PostForm == nil {
870 if r.PostForm == nil {
874 if r.Form == nil {
880 if r.URL != nil {
883 if err == nil {
887 if newValues == nil {
890 if r.Form == nil {
909 if r.Form == nil {
911 if err != nil {
915 if r.MultipartForm != nil {
916 return nil
920 if err != nil {
925 if err != nil {
933 return nil
944 if r.Form == nil {
959 if r.PostForm == nil {
972 return nil, nil, errors.New("http: multipart handled by MultipartReader")
974 if r.MultipartForm == nil {
976 if err != nil {
977 return nil, nil, err
980 if r.MultipartForm != nil && r.MultipartForm.File != nil {
986 return nil, nil, ErrMissingFile
1005 if r.Body != nil {