From 4b3560d0cff1de77d9920bbe0cdb81792e1028a2 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Tue, 25 Feb 2025 16:48:09 +0100 Subject: [PATCH] Updated module path --- Context_test.go | 4 ++-- README.md | 6 +++--- Request.go | 2 +- Request_test.go | 4 ++-- Response_test.go | 4 ++-- Server.go | 2 +- Server_test.go | 6 +++--- examples/hello/main.go | 2 +- go.mod | 8 ++++---- go.sum | 8 ++++---- send/send.go | 2 +- send/send_test.go | 6 +++--- 12 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Context_test.go b/Context_test.go index 5a25cab..b3a6005 100644 --- a/Context_test.go +++ b/Context_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "git.akyoto.dev/go/assert" - "git.akyoto.dev/go/web" + "git.urbach.dev/go/assert" + "git.urbach.dev/go/web" ) func TestBytes(t *testing.T) { diff --git a/README.md b/README.md index ddb0e47..fcfe006 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # web -A fast HTTP/1.1 web server that can sit behind a reverse proxy like `caddy` or `nginx` for HTTP 1/2/3 support. +A minimal HTTP/1.1 web server that sits behind a reverse proxy like `caddy` or `nginx` for HTTP 1/2/3 support. ## Features @@ -11,7 +11,7 @@ A fast HTTP/1.1 web server that can sit behind a reverse proxy like `caddy` or ` ## Installation ```shell -go get git.akyoto.dev/go/web +go get git.urbach.dev/go/web ``` ## Usage @@ -82,7 +82,7 @@ coverage: 100.0% of statements ## License -Please see the [license documentation](https://akyoto.dev/license). +Please see the [license documentation](https://urbach.dev/license). ## Copyright diff --git a/Request.go b/Request.go index 9ec8ef9..6c7ef3c 100644 --- a/Request.go +++ b/Request.go @@ -3,7 +3,7 @@ package web import ( "bufio" - "git.akyoto.dev/go/router" + "git.urbach.dev/go/router" ) // Request is an interface for HTTP requests. diff --git a/Request_test.go b/Request_test.go index 6a08fd0..1e079a8 100644 --- a/Request_test.go +++ b/Request_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "git.akyoto.dev/go/assert" - "git.akyoto.dev/go/web" + "git.urbach.dev/go/assert" + "git.urbach.dev/go/web" ) func TestRequest(t *testing.T) { diff --git a/Response_test.go b/Response_test.go index dc62965..9028acf 100644 --- a/Response_test.go +++ b/Response_test.go @@ -6,8 +6,8 @@ import ( "io" "testing" - "git.akyoto.dev/go/assert" - "git.akyoto.dev/go/web" + "git.urbach.dev/go/assert" + "git.urbach.dev/go/web" ) func TestWrite(t *testing.T) { diff --git a/Server.go b/Server.go index dcaea9a..ece9024 100644 --- a/Server.go +++ b/Server.go @@ -13,7 +13,7 @@ import ( "sync" "syscall" - "git.akyoto.dev/go/router" + "git.urbach.dev/go/router" ) // Server is the interface for an HTTP server. diff --git a/Server_test.go b/Server_test.go index 7172d54..013ca9b 100644 --- a/Server_test.go +++ b/Server_test.go @@ -7,8 +7,8 @@ import ( "syscall" "testing" - "git.akyoto.dev/go/assert" - "git.akyoto.dev/go/web" + "git.urbach.dev/go/assert" + "git.urbach.dev/go/web" ) func TestPanic(t *testing.T) { @@ -77,7 +77,7 @@ func TestBadRequestHeader(t *testing.T) { assert.Nil(t, err) defer conn.Close() - _, err = io.WriteString(conn, "GET / HTTP/1.1\r\nBadHeader\r\nGood: Header\r\n\r\n") + _, err = io.WriteString(conn, "GET / HTTP/1.1\r\nBad\r\nBad:\r\nGood: Header\r\n\r\n") assert.Nil(t, err) buffer := make([]byte, len("HTTP/1.1 200")) diff --git a/examples/hello/main.go b/examples/hello/main.go index c9853da..b42db84 100644 --- a/examples/hello/main.go +++ b/examples/hello/main.go @@ -1,7 +1,7 @@ package main import ( - "git.akyoto.dev/go/web" + "git.urbach.dev/go/web" ) func main() { diff --git a/go.mod b/go.mod index a4d4a7c..1fc6254 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,8 @@ -module git.akyoto.dev/go/web +module git.urbach.dev/go/web -go 1.22 +go 1.24 require ( - git.akyoto.dev/go/assert v0.1.3 - git.akyoto.dev/go/router v0.1.4 + git.urbach.dev/go/assert v0.0.0-20250225153414-fc1f84f19edf + git.urbach.dev/go/router v0.0.0-20250225153839-20945fb42429 ) diff --git a/go.sum b/go.sum index a12e1ec..b693c95 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,4 @@ -git.akyoto.dev/go/assert v0.1.3 h1:QwCUbmG4aZYsNk/OuRBz1zWVKmGlDUHhOnnDBfn8Qw8= -git.akyoto.dev/go/assert v0.1.3/go.mod h1:0GzMaM0eURuDwtGkJJkCsI7r2aUKr+5GmWNTFPgDocM= -git.akyoto.dev/go/router v0.1.4 h1:ZL5HPl4aNn4QKihf3VVs0Mm9R6ZGn2StAHGRQxjEbws= -git.akyoto.dev/go/router v0.1.4/go.mod h1:rbHbkLJlQOafuOuvBalO3O8E0JtMFPT3zzTKX3h9T08= +git.urbach.dev/go/assert v0.0.0-20250225153414-fc1f84f19edf h1:BQWa5GKNUsA5CSUa/+UlFWYCEVe3IDDKRbVqBLK0mAE= +git.urbach.dev/go/assert v0.0.0-20250225153414-fc1f84f19edf/go.mod h1:y9jGII9JFiF1HNIju0u87OyPCt82xKCtqnAFyEreCDo= +git.urbach.dev/go/router v0.0.0-20250225153839-20945fb42429 h1:VaFZujqHv30JGFZkfDEVE8kEqr3BaBSm+zy8TfMB6vw= +git.urbach.dev/go/router v0.0.0-20250225153839-20945fb42429/go.mod h1:jIdUMhSrZ9FepXzVWdMvYvhE4FfYhKOWJyw8lw5KOPk= diff --git a/send/send.go b/send/send.go index 79e2cf8..9c4c2ca 100644 --- a/send/send.go +++ b/send/send.go @@ -3,7 +3,7 @@ package send import ( "encoding/json" - "git.akyoto.dev/go/web" + "git.urbach.dev/go/web" ) // CSS sends the body with the content type set to `text/css`. diff --git a/send/send_test.go b/send/send_test.go index 4822a4e..fec22c3 100644 --- a/send/send_test.go +++ b/send/send_test.go @@ -3,9 +3,9 @@ package send_test import ( "testing" - "git.akyoto.dev/go/assert" - "git.akyoto.dev/go/web" - "git.akyoto.dev/go/web/send" + "git.urbach.dev/go/assert" + "git.urbach.dev/go/web" + "git.urbach.dev/go/web/send" ) func TestContentTypes(t *testing.T) {