Skip to content

Commit 51d7b33

Browse files
committed
Format!
1 parent f232f8c commit 51d7b33

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

src/gleam/http/cookie.gleam

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import gleam/result
1+
import gleam/http.{type Scheme}
22
import gleam/int
33
import gleam/list
4+
import gleam/option.{type Option, Some}
45
import gleam/regex
6+
import gleam/result
57
import gleam/string
6-
import gleam/option.{type Option, Some}
7-
import gleam/http.{type Scheme}
88

99
/// Policy options for the SameSite cookie attribute
1010
///
@@ -43,8 +43,7 @@ pub fn defaults(scheme: Scheme) {
4343
max_age: option.None,
4444
domain: option.None,
4545
path: option.Some("/"),
46-
secure: scheme
47-
== http.Https,
46+
secure: scheme == http.Https,
4847
http_only: True,
4948
same_site: Some(Lax),
5049
)

test/gleam/http/multipart_test.gleam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import gleeunit/should
21
import gleam/bit_array
3-
import gleam/list
42
import gleam/http.{
53
MoreRequiredForBody, MoreRequiredForHeaders, MultipartBody, MultipartHeaders,
64
}
5+
import gleam/list
6+
import gleeunit/should
77

88
pub fn parse_multipart_headers_1_test() {
99
let input = <<

test/gleam/http/request_test.gleam

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import gleam/option.{None, Some}
2-
import gleam/uri.{Uri}
3-
import gleam/string
41
import gleam/http.{Https}
52
import gleam/http/request.{type Request, Request}
3+
import gleam/option.{None, Some}
4+
import gleam/string
5+
import gleam/uri.{Uri}
66
import gleeunit/should
77

88
pub fn req_to_uri_test() {

test/gleam/http/response_test.gleam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import gleam/http.{Http}
2-
import gleam/http/response.{Response}
32
import gleam/http/cookie
4-
import gleam/string
3+
import gleam/http/response.{Response}
54
import gleam/option.{None, Some}
5+
import gleam/string
66
import gleeunit/should
77

88
pub fn redirect_test() {

0 commit comments

Comments
 (0)