http

package
v3.1.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package http implements a HTTP client for go-git.

Index

Constants

This section is empty.

Variables

View Source
var InvalidAuthMethodErr = errors.New("invalid http auth method: a http.HTTPAuthMethod should be provided.")

Functions

func NewHTTPError

func NewHTTPError(r *http.Response) error

Types

type BasicAuth

type BasicAuth struct {
	// contains filtered or unexported fields
}

func NewBasicAuth

func NewBasicAuth(username, password string) *BasicAuth

func (*BasicAuth) Name

func (a *BasicAuth) Name() string

func (*BasicAuth) String

func (a *BasicAuth) String() string

type GitUploadPackService

type GitUploadPackService struct {
	Client *http.Client
	// contains filtered or unexported fields
}

func NewGitUploadPackService

func NewGitUploadPackService() *GitUploadPackService

func (*GitUploadPackService) Connect

func (s *GitUploadPackService) Connect(url common.Endpoint) error

func (*GitUploadPackService) ConnectWithAuth

func (s *GitUploadPackService) ConnectWithAuth(url common.Endpoint, auth common.AuthMethod) error

func (*GitUploadPackService) Fetch

func (*GitUploadPackService) Info

type HTTPAuthMethod

type HTTPAuthMethod interface {
	common.AuthMethod
	// contains filtered or unexported methods
}

type HTTPError

type HTTPError struct {
	Response *http.Response
}

func (*HTTPError) Error

func (e *HTTPError) Error() string

func (*HTTPError) StatusCode

func (e *HTTPError) StatusCode() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL