Giter Site home page Giter Site logo

httpclient's Introduction

gobs

Gobs of Go

Introduction

This is a collection of useful Go packages, that should make life a little easier for developers coming from other languages and/or with a common set of requirements.

Each package is hosted in its own repository, to keep the import path short and can be used independently of each other.

The current list of available packages is:

  • httpclient : A friendly HTTP client, inspired by python 'requests'
  • cmd : A package to write shell-like application, inspired by python cmd/cmd2
  • args : A simple command line argument parser
  • pretty : A pretty-printer for Go data structures

Also here:

httpclient's People

Contributors

raff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

httpclient's Issues

unknown field 'WroteHeaderField'

github.com/gobs/httpclient/logging.go:236:19: unknown field 'WroteHeaderField' in struct literal of type httptrace.ClientTrace

reuseport.Dialer missing

Hello

Dialer struct is missing in package github.com/jbenet/go-reuseport

github.com/gobs/httpclient/httpclient.go:419:14: undefined: reuseport.Dialer

[Feature] Default request options

It would be awesome to be able to add some RequestOptions that will always be set on all client.SendRequest.
I would use it to add Accept and Authorization - am I missing a way that should be done ?

Honor the `Host` header in addHeaders

When the Host header is provided it seems to be correctly processed by https://github.com/gobs/httpclient/blob/master/httpclient.go#L462 , but as the Host attribute of the request object was already set by that point in https://github.com/gobs/httpclient/blob/master/httpclient.go#L541 (the HttpClient.Host attribute is never set by the way) the Host header is ignored. It seems the correct solution would be have a special case for the Host header and set the Host attribute from the request accordingly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.