Documentation
¶
Overview ¶
Package web builds and sends authenticated HTTP requests to a GitHub web host; it knows nothing about upload API shapes — see internal/github/attachments for that.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client makes GitHub web HTTP calls, scoping cookies to each request's destination host.
func (*Client) DoMultipart ¶
DoMultipart streams the multipart body, applies headers/cookie/user-agent, and returns the response body.
type Request ¶
type Request struct {
Method string
URL string
Fields map[string]string
Headers map[string]string
FilePath string // non-empty attaches the file as the "file" form part
Referer string // non-empty applies setDefaultHeaders(req, referer)
}
Request is a pure description of one multipart HTTP call's shape; DoMultipart turns it into an actual request.
Click to show internal directories.
Click to hide internal directories.