Updated module path
This commit is contained in:
parent
a4177508f1
commit
4b3560d0cf
@ -4,8 +4,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.akyoto.dev/go/assert"
|
"git.urbach.dev/go/assert"
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestBytes(t *testing.T) {
|
func TestBytes(t *testing.T) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# web
|
# 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
|
## Features
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ A fast HTTP/1.1 web server that can sit behind a reverse proxy like `caddy` or `
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
go get git.akyoto.dev/go/web
|
go get git.urbach.dev/go/web
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
@ -82,7 +82,7 @@ coverage: 100.0% of statements
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Please see the [license documentation](https://akyoto.dev/license).
|
Please see the [license documentation](https://urbach.dev/license).
|
||||||
|
|
||||||
## Copyright
|
## Copyright
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ package web
|
|||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
|
|
||||||
"git.akyoto.dev/go/router"
|
"git.urbach.dev/go/router"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Request is an interface for HTTP requests.
|
// Request is an interface for HTTP requests.
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.akyoto.dev/go/assert"
|
"git.urbach.dev/go/assert"
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRequest(t *testing.T) {
|
func TestRequest(t *testing.T) {
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.akyoto.dev/go/assert"
|
"git.urbach.dev/go/assert"
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestWrite(t *testing.T) {
|
func TestWrite(t *testing.T) {
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"git.akyoto.dev/go/router"
|
"git.urbach.dev/go/router"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server is the interface for an HTTP server.
|
// Server is the interface for an HTTP server.
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.akyoto.dev/go/assert"
|
"git.urbach.dev/go/assert"
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPanic(t *testing.T) {
|
func TestPanic(t *testing.T) {
|
||||||
@ -77,7 +77,7 @@ func TestBadRequestHeader(t *testing.T) {
|
|||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
defer conn.Close()
|
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)
|
assert.Nil(t, err)
|
||||||
|
|
||||||
buffer := make([]byte, len("HTTP/1.1 200"))
|
buffer := make([]byte, len("HTTP/1.1 200"))
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
8
go.mod
8
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 (
|
require (
|
||||||
git.akyoto.dev/go/assert v0.1.3
|
git.urbach.dev/go/assert v0.0.0-20250225153414-fc1f84f19edf
|
||||||
git.akyoto.dev/go/router v0.1.4
|
git.urbach.dev/go/router v0.0.0-20250225153839-20945fb42429
|
||||||
)
|
)
|
||||||
|
8
go.sum
8
go.sum
@ -1,4 +1,4 @@
|
|||||||
git.akyoto.dev/go/assert v0.1.3 h1:QwCUbmG4aZYsNk/OuRBz1zWVKmGlDUHhOnnDBfn8Qw8=
|
git.urbach.dev/go/assert v0.0.0-20250225153414-fc1f84f19edf h1:BQWa5GKNUsA5CSUa/+UlFWYCEVe3IDDKRbVqBLK0mAE=
|
||||||
git.akyoto.dev/go/assert v0.1.3/go.mod h1:0GzMaM0eURuDwtGkJJkCsI7r2aUKr+5GmWNTFPgDocM=
|
git.urbach.dev/go/assert v0.0.0-20250225153414-fc1f84f19edf/go.mod h1:y9jGII9JFiF1HNIju0u87OyPCt82xKCtqnAFyEreCDo=
|
||||||
git.akyoto.dev/go/router v0.1.4 h1:ZL5HPl4aNn4QKihf3VVs0Mm9R6ZGn2StAHGRQxjEbws=
|
git.urbach.dev/go/router v0.0.0-20250225153839-20945fb42429 h1:VaFZujqHv30JGFZkfDEVE8kEqr3BaBSm+zy8TfMB6vw=
|
||||||
git.akyoto.dev/go/router v0.1.4/go.mod h1:rbHbkLJlQOafuOuvBalO3O8E0JtMFPT3zzTKX3h9T08=
|
git.urbach.dev/go/router v0.0.0-20250225153839-20945fb42429/go.mod h1:jIdUMhSrZ9FepXzVWdMvYvhE4FfYhKOWJyw8lw5KOPk=
|
||||||
|
@ -3,7 +3,7 @@ package send
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CSS sends the body with the content type set to `text/css`.
|
// CSS sends the body with the content type set to `text/css`.
|
||||||
|
@ -3,9 +3,9 @@ package send_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.akyoto.dev/go/assert"
|
"git.urbach.dev/go/assert"
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
"git.akyoto.dev/go/web/send"
|
"git.urbach.dev/go/web/send"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestContentTypes(t *testing.T) {
|
func TestContentTypes(t *testing.T) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user