- Fixed warnings on
gleam_stdlib
v0.42.0.
- The
gleam/http/request
module gains theremove_cookie
function.
- The
gleam/http/service
module has been deprecated in favour of other packages such as Wisp and Glen. - The
request.set_query
function now escapes its input.
- Fixed warnings on Gleam v0.33.0.
- Fixed a bug where
response.set_header
would lowercase the value rather than the key.
- Updated for Gleam v0.32.0.
- The
parse_multipart_body
function now return a bit string rather than a string.
- The
gleam/http
module gains theparse_multipart_headers
,parse_multipart_body
, andparse_content_disposition
functions.
- Updated for Gleam v0.30.0.
- The
gleam/http/request
module gains theto
function for creating requests.
- Updated for Gleam v0.27.0.
- Fixed a bug where the
request.set_header
function would lowercase the value rather than the key.
- Added
set_header
torequest
andresponse
.
- Fixed some warnings from unused imports.
- Updated for Gleam v0.19.0. As a result the
method_from_dynamic
function now returns a list of decode errors. - The default cookie attributes now includes
SameSite=Lax
. - The
request
,response
andcookie
modules have been extracted from thehttp
module.
- 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_origin
function returns aResult(String, Nil)
instead of anOption(String)
. - Gleam v0.14 support.
- The
gleam/http
module gains theget_resp_cookies
function. - The
gleam/http.get_resp_cookie
function as been deprecated in favour ofgleam/http.get_resp_cookie
.
- The
gleam/http.default_req
function returns aRequest(String)
again, reverting the change from v1.5.0. - The
gleam/http
module gains theget_resp_cookie
,set_scheme
andset_port
functions. - The Gleam stdlib version requirement has been relaxed.
- The
gleam/http
module gains theget_req_origin
function. - Fix bug to correctly set cookie
Max-Age
attribute - 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.