Skip to content

Commit 6b9bbfd

Browse files
committed
Changed response headers & message
1 parent 5e79669 commit 6b9bbfd

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ The mail response is used for debugging and inspecting results of the mailer. Be
126126
```go
127127
// Response represents the data passed back from a successful transmission.
128128
type Response struct {
129-
StatusCode int // e.g. 200
130-
Body []byte // e.g. {"result: success"}
131-
Headers map[string][]string // e.g. map[X-Ratelimit-Limit:[600]]
132-
ID string // e.g "100"
133-
Message interface{} // e.g "Email sent successfully"
129+
StatusCode int // e.g. 200
130+
Body []byte // e.g. {"result: success"}
131+
Headers http.Header // e.g. map[X-Ratelimit-Limit:[600]]
132+
ID string // e.g "100"
133+
Message string // e.g "Email sent successfully"
134134
}
135135
```
136136

mail/response.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313

1414
package mail
1515

16+
import "net/http"
17+
1618
// Response represents the data passed back from a successful transmission.
1719
type Response struct {
18-
StatusCode int // e.g. 200
19-
Body []byte // e.g. {"result: success"}
20-
Headers map[string][]string // e.g. map[X-Ratelimit-Limit:[600]]
21-
ID string // e.g "100"
22-
Message interface{} // e.g "Email sent successfully"
20+
StatusCode int // e.g. 200
21+
Body []byte // e.g. {"result: success"}
22+
Headers http.Header // e.g. map[X-Ratelimit-Limit:[600]]
23+
ID string // e.g "100"
24+
Message string // e.g "Email sent successfully"
2325
}

0 commit comments

Comments
 (0)