(code int)
| 351 | } |
| 352 | |
| 353 | func (c *aeContext) WriteHeader(code int) { |
| 354 | if c.outCode != 0 { |
| 355 | logf(c, 3, "WriteHeader called multiple times on request.") // error level |
| 356 | return |
| 357 | } |
| 358 | c.outCode = code |
| 359 | } |
| 360 | |
| 361 | func post(ctx context.Context, body []byte, timeout time.Duration) (b []byte, err error) { |
| 362 | apiURL := apiURL(ctx) |