SimpleGet makes a simple GET request to a URL
(ctx context.Context, getURL string)
| 65 | |
| 66 | // SimpleGet makes a simple GET request to a URL |
| 67 | func (s *Session) SimpleGet(ctx context.Context, getURL string) (*http.Response, error) { |
| 68 | return s.HTTPRequest(ctx, http.MethodGet, getURL, "", map[string]string{}, nil, BasicAuth{}) |
| 69 | } |
| 70 | |
| 71 | // Post makes a POST request to a URL with extended parameters |
| 72 | func (s *Session) Post(ctx context.Context, postURL, cookies string, headers map[string]string, body io.Reader) (*http.Response, error) { |