Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD CUSTOM METHODS #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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.

None yet

2 participants