Documentation
This commit is contained in:
parent
499b2fb0d6
commit
2b5a1a7a1c
5 changed files with 118 additions and 27 deletions
|
@ -72,6 +72,11 @@ func WithAttach(attach string) PublishOption {
|
|||
return WithHeader("X-Attach", attach)
|
||||
}
|
||||
|
||||
// WithMarkdown instructs the server to interpret the message body as Markdown
|
||||
func WithMarkdown() PublishOption {
|
||||
return WithHeader("X-Markdown", "yes")
|
||||
}
|
||||
|
||||
// WithFilename sets a filename for the attachment, and/or forces the HTTP body to interpreted as an attachment
|
||||
func WithFilename(filename string) PublishOption {
|
||||
return WithHeader("X-Filename", filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue