- The performance of the
parse_multipart_headersandparse_multipart_bodyfunctions has been improved.
- The performance of the cookie and method parsing functions have been improved.
- Fixed a bug where
set_cookiewould fail to overwrite an existing cookie.
- Updated for latest
gleam_stdlib.
- Removed
method_from_dynamic. - Fixed a bug where
parse_methodcould parse invalid HTTP methods. - Fixed a bug where
method_to_stringwould use incorrect syntax.
- Fixed warnings on
gleam_stdlibv0.45.0.
- Fixed warnings on
gleam_stdlibv0.42.0.
- The
gleam/http/requestmodule gains theremove_cookiefunction.
- The
gleam/http/servicemodule has been deprecated in favour of other packages such as Wisp and Glen. - The
request.set_queryfunction now escapes its input.
- Fixed warnings on Gleam v0.33.0.
- Fixed a bug where
response.set_headerwould lowercase the value rather than the key.
- Updated for Gleam v0.32.0.
- The
parse_multipart_bodyfunction now return a bit string rather than a string.
- The
gleam/httpmodule gains theparse_multipart_headers,parse_multipart_body, andparse_content_dispositionfunctions.
- Updated for Gleam v0.30.0.
- The
gleam/http/requestmodule gains thetofunction for creating requests.
- Updated for Gleam v0.27.0.
- Fixed a bug where the
request.set_headerfunction would lowercase the value rather than the key.
- Added
set_headertorequestandresponse.
- Fixed some warnings from unused imports.
- Updated for Gleam v0.19.0. As a result the
method_from_dynamicfunction now returns a list of decode errors. - The default cookie attributes now includes
SameSite=Lax. - The
request,responseandcookiemodules have been extracted from thehttpmodule.
- Converted to use the Gleam build tool.
- Updated for Gleam stdlib v0.17.1.
- Updated to work for Gleam JS.
- Upgraded for Gleam v0.16.
- The
gleam/http.get_req_originfunction returns aResult(String, Nil)instead of anOption(String). - Gleam v0.14 support.
- The
gleam/httpmodule gains theget_resp_cookiesfunction. - The
gleam/http.get_resp_cookiefunction as been deprecated in favour ofgleam/http.get_resp_cookie.
- The
gleam/http.default_reqfunction returns aRequest(String)again, reverting the change from v1.5.0. - The
gleam/httpmodule gains theget_resp_cookie,set_schemeandset_portfunctions. - The Gleam stdlib version requirement has been relaxed.
- The
gleam/httpmodule gains theget_req_originfunction. - Fix bug to correctly set cookie
Max-Ageattribute - The
gleam/http.default_reqfunction returns aRequest(BitString)insteadRequest(String)
- The
gleam/http/cookiemodule has been merged into thegleam/httpmodule.
- The
gleam/httpmodule gains theget_req_cookies,set_req_cookieset_resp_cookieandexpire_resp_cookiefunctions. - Created the
gleam/http/cookiemodule withSameSitePolicyandAttributestypes, along with associated functionsempty_attributes,default_attributes,expire_attributesandset_cookie_string.
- Relax dependency requirements on stdlib
- The
gleam/httpmodule gains theScheme,Service,Request, andResponsetypes, 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_bodytry_map_resp_body, - Created the
gleam/http/middlewaremodule with theMiddlewaretype and themethod_override,prepend_resp_header,map_resp_bodymiddleware functions.
- Initial release.