(contentType string)
| 53 | } |
| 54 | |
| 55 | func NewBodyParam(contentType string) *BodyParam { |
| 56 | t := ContentType(contentType) |
| 57 | if t == "" { |
| 58 | t = ContentTypeJSON |
| 59 | } |
| 60 | return &BodyParam{contentType: t} |
| 61 | } |
| 62 | |
| 63 | func (p *BodyParam) Set(k string, v interface{}) { |
| 64 | if p.params == nil { |
no test coverage detected