swag icon indicating copy to clipboard operation
swag copied to clipboard

How to define accept-language in request header?

Open fishjar opened this issue 3 years ago • 2 comments

I'm not sure if there is a feature for this, does anyone know how to do it?

fishjar avatar Aug 12 '22 03:08 fishjar

This should work, set false to true if this header is required

// @Param   accept-language  header     string     false  "some description"    

ubogdan avatar Aug 12 '22 07:08 ubogdan

This should work, set false to true if this header is required

// @Param   accept-language  header     string     false  "some description"    

Yes it works, just need to be set repeatedly for each handler, It would be better if it could be set globally.

fishjar avatar Aug 14 '22 15:08 fishjar