Giter Club home page Giter Club logo

Comments (9)

mbanzon avatar mbanzon commented on July 2, 2024 1

I have made a custom-client branch that supports alternative http.Clients - these are passed to simplehttp. I haven't had time to test it properly but it should work as intended with GAE eg.

from mailgun-go.

ohler avatar ohler commented on July 2, 2024

The simplehttp library has been fixed, but mailgun-go now needs to expose a way to pass an http.Client into simplehttp. One way to do this would be to add it as a field to MailgunImpl and call r.SetClient(mg.client) whenever we create a simplehttp request object.

from mailgun-go.

mbanzon avatar mbanzon commented on July 2, 2024

I am looking into it - but the fix won't be as smooth as in simplehttp.

from mailgun-go.

mattes avatar mattes commented on July 2, 2024

+1

from mailgun-go.

karalabe avatar karalabe commented on July 2, 2024

It does have quite a number of compilation errors :P Many places you used m.client to access the client, but the function context is actually called mg.

E.g. https://github.com/mailgun/mailgun-go/blob/custom-client/credentials.go#L22

from mailgun-go.

mbanzon avatar mbanzon commented on July 2, 2024

Oh my. I have no idea why that even compiled on my machine!

Thank you for the comment + PR.

from mailgun-go.

shawnps avatar shawnps commented on July 2, 2024

+1

from mailgun-go.

warent avatar warent commented on July 2, 2024

Why did this get closed? :(
Is app engine not going to be supported?

from mailgun-go.

warent avatar warent commented on July 2, 2024

Oh I see, it looks like SetClient was ultimately added to master branch. Spoke too soon, sorry for the noise! Thanks :D

from mailgun-go.

Related Issues (20)

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.