Versions in this module Expand all Collapse all v0 v0.0.7 Aug 30, 2022 Changes in this version + const CONTENT_TYPE_JSON + const CONTENT_TYPE_MULTIPART + const CONTENT_TYPE_X_WWW_FORM_URLENCODED + const ContentDispositionPattern + const ContentTypePattern + const METHOD_CONNECT + const METHOD_DELETE + const METHOD_GET + const METHOD_HEAD + const METHOD_OPTIONS + const METHOD_POST + const METHOD_PUT + const METHOD_TRACE + var RegexContentDispositionPattern = regexp.MustCompile(ContentDispositionPattern) + var RegexContentTypePattern = regexp.MustCompile(ContentTypePattern) + func ByteCopy(src []byte, start int, end int, cp []byte) + func Mock() *mock + func ServeContent(w http.ResponseWriter, r *http.Request, name string, modtime time.Time, ...) + func SetTTL(timeout time.Duration) + type File interface + Readdir func(count int) ([]os.FileInfo, error) + Stat func() (os.FileInfo, error) + type FileFormReader struct + func (reader *FileFormReader) Read(buff []byte) (int, error) + func (reader *FileFormReader) Unread(read []byte) + type FileSystem interface + Open func(name string) (File, error) + type FileTransactionProcessor struct + Before func() error + Error func(err error) + Success func() error + Write func(bs []byte) error + type FileUploadHandler struct + OnFileField func(paraName, fileName string) *FileTransactionProcessor + OnFormField func(paraName, paraValue string) + Request *http.Request + func (handler *FileUploadHandler) Parse() error