diff --git a/session.go b/session.go index 800c1a8..af75451 100644 --- a/session.go +++ b/session.go @@ -116,25 +116,37 @@ type Session struct { const ( // TypeJSON 类型 TypeJSON = "application/json" + // TypeXML 类型 TypeXML = "text/xml" + // TypePlain 类型 TypePlain = "text/plain" + // TypeHTML 类型 TypeHTML = "text/html" + // TypeURLENCODED 类型 TypeURLENCODED = "application/x-www-form-urlencoded" + // TypeForm PostForm类型 TypeForm = TypeURLENCODED + + // TypeStream application/octet-stream 类型 binary + TypeStream = "application/octet-stream" + // TypeFormData 类型 TypeFormData = "multipart/form-data" + // TypeMixed Mixed类型 TypeMixed = "multipart/mixed" // HeaderKeyHost Host HeaderKeyHost = "Host" + // HeaderKeyUA User-Agent HeaderKeyUA = "User-Agent" + // HeaderKeyContentType Content-Type HeaderKeyContentType = "Content-Type" )