Documentation

This commit is contained in:
binwiederhier 2023-07-08 21:45:03 -04:00
parent 499b2fb0d6
commit 2b5a1a7a1c
5 changed files with 118 additions and 27 deletions

View file

@ -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)