Skip to content

Conversation

@CarbonFactory
Copy link

Add Size() method to get the size of the response body
Add Status() method to get the HTTP Response Code

Adapted from Negroni !

Add Size() method to get the size of the response body
Add Status() method to get the HTTP Response Code

Adapterr from Negroni !
@CarbonFactory
Copy link
Author

Usage

res := w.(muxie.ResponseWriter)
status := res.Status()
size := res.Size()

@kataras
Copy link
Owner

kataras commented Feb 20, 2019

@CarbonFactory There is no need to look on negroni. I already implement all those things you mention in the iris web framework itself. Muxie is all about simplicity and net/http users alone, we will not add more things here, only performance improvements and bugfixes, if any.

@CarbonFactory
Copy link
Author

@kataras Agreed. Since, I'm not using iris, I added it for my requirement.
Thanks for the library though 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants