Add TypeStream application/octet-stream
This commit is contained in:
parent
d382505453
commit
23a369677f
12
session.go
12
session.go
|
@ -116,25 +116,37 @@ type Session struct {
|
||||||
const (
|
const (
|
||||||
// TypeJSON 类型
|
// TypeJSON 类型
|
||||||
TypeJSON = "application/json"
|
TypeJSON = "application/json"
|
||||||
|
|
||||||
// TypeXML 类型
|
// TypeXML 类型
|
||||||
TypeXML = "text/xml"
|
TypeXML = "text/xml"
|
||||||
|
|
||||||
// TypePlain 类型
|
// TypePlain 类型
|
||||||
TypePlain = "text/plain"
|
TypePlain = "text/plain"
|
||||||
|
|
||||||
// TypeHTML 类型
|
// TypeHTML 类型
|
||||||
TypeHTML = "text/html"
|
TypeHTML = "text/html"
|
||||||
|
|
||||||
// TypeURLENCODED 类型
|
// TypeURLENCODED 类型
|
||||||
TypeURLENCODED = "application/x-www-form-urlencoded"
|
TypeURLENCODED = "application/x-www-form-urlencoded"
|
||||||
|
|
||||||
// TypeForm PostForm类型
|
// TypeForm PostForm类型
|
||||||
TypeForm = TypeURLENCODED
|
TypeForm = TypeURLENCODED
|
||||||
|
|
||||||
|
// TypeStream application/octet-stream 类型 binary
|
||||||
|
TypeStream = "application/octet-stream"
|
||||||
|
|
||||||
// TypeFormData 类型
|
// TypeFormData 类型
|
||||||
TypeFormData = "multipart/form-data"
|
TypeFormData = "multipart/form-data"
|
||||||
|
|
||||||
// TypeMixed Mixed类型
|
// TypeMixed Mixed类型
|
||||||
TypeMixed = "multipart/mixed"
|
TypeMixed = "multipart/mixed"
|
||||||
|
|
||||||
// HeaderKeyHost Host
|
// HeaderKeyHost Host
|
||||||
HeaderKeyHost = "Host"
|
HeaderKeyHost = "Host"
|
||||||
|
|
||||||
// HeaderKeyUA User-Agent
|
// HeaderKeyUA User-Agent
|
||||||
HeaderKeyUA = "User-Agent"
|
HeaderKeyUA = "User-Agent"
|
||||||
|
|
||||||
// HeaderKeyContentType Content-Type
|
// HeaderKeyContentType Content-Type
|
||||||
HeaderKeyContentType = "Content-Type"
|
HeaderKeyContentType = "Content-Type"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user