- The
gleam/http.default_req
function returns aRequest(BitString)
insteadRequest(String)
- The
gleam/http/cookie
module has been merged into thegleam/http
module.
- The
gleam/http
module gains theget_req_cookies
,set_req_cookie
set_resp_cookie
andexpire_resp_cookie
functions. - Created the
gleam/http/cookie
module withSameSitePolicy
andAttributes
types, along with associated functionsempty_attributes
,default_attributes
,expire_attributes
andset_cookie_string
.
- Relax dependency requirements on stdlib
- The
gleam/http
module gains theScheme
,Service
,Request
, andResponse
types, along with associated functionsscheme_to_string
,scheme_from_string
,req_uri
,response
,path_segments
,get_query
,get_req_header
,get_resp_header
,prepend_req_header
,seq_host
,set_path
,prepend_resp_header
,set_method
,set_body
,set_query
,req_from_uri
,default_req
, andredirect
.set_resp_body
,map_resp_body
,map_req_body
try_map_resp_body
, - Created the
gleam/http/middleware
module with theMiddleware
type and themethod_override
,prepend_resp_header
,map_resp_body
middleware functions.
- Initial release