fukamachi / lack

Lack, the core of Clack
MIT License
155 stars 33 forks source link

Feat: media-type, request, response slot types #86

Closed kilianmh closed 5 months ago

kilianmh commented 6 months ago

Add types to the structs media-type, request, response.

Tests are succeeding so far, but maybe more tests should be performed.

Also I was not sure whether the default value for some slots of type string should be nil or "". This mainly applies for required slots of request: e.g. script-name, path-info, request-uri, remote-addr.

fukamachi commented 5 months ago

Thanks!