summary refs log tree commit diff stats
path: root/svc/handlers.go
Commit message (Collapse)AuthorAgeFilesLines
* updating module to live at sourcehutBen Morrison2020-06-201-2/+2
| | | | | | Also moving the 'registry' library into this repo, rather than maintaining them separately. It will still be decoupled, just live in this repository.
* eliminated panic when serving requests from empty registry v0.4.11Ben Morrison2020-03-161-0/+6
| | | | | | | | | | | when generating an etag from a query that returns no results, indexing into the byte slice caused that thread to panic. now checking for a nil byte slice or a small byte slice in handlers.go:46:getEtag() on nil byte slice, return empty string for etag. on small byte slice, don't truncate it, but return the whole thing.
* some functions were missing comments. added those in where needed.Ben Morrison2019-12-191-0/+7
|
* truncating etag v0.4.8Ben Morrison2019-12-191-2/+4
|
* minor refactor of apiEndpointHandler():Ben Morrison2019-12-191-8/+5
| | | | | reduced early returns removed unnecessary switch statement
* refactored servStatic() to eliminate early returnBen Morrison2019-12-181-8/+13
|
* reduced size of hash for etag to 32bitsBen Morrison2019-12-181-2/+2
|
* switched etags to use fnv hashBen Morrison2019-12-121-10/+14
|
* endpoint for version response v0.4.5Ben Morrison2019-08-281-0/+12
|
* license notice at top of each fileBen Morrison2019-07-111-0/+19
|
* mutex and readability cleanupBen Morrison2019-06-131-3/+2
|
* separate request and message logBen Morrison2019-06-121-10/+4
|
* cleaned up staticHandlerBen Morrison2019-06-111-10/+8
|
* runtime bugs in staticHandlerBen Morrison2019-06-111-19/+12
|
* fixed content-typesBen Morrison2019-06-111-2/+2
|
* check if behind reverse proxyBen Morrison2019-06-111-1/+1
|
* merged indexHandler with cssHandler, updated testsBen Morrison2019-06-111-37/+32
|
* refactored http err handling to combine 3 funcs into 1Ben Morrison2019-06-101-20/+20
|
* apiEndpointHandler now 404s invalid endpoints, better testing for itBen Morrison2019-06-091-1/+5
|
* sqlite functionality addedBen Morrison2019-06-081-6/+1
|
* cleaned up error handlingBen Morrison2019-06-081-4/+1
|
* database refs and static assets concurrency-safeBen Morrison2019-06-081-23/+34
|
* deduplicated duplicate deduplication functionsBen Morrison2019-06-061-24/+2
|
* moved bulk of code to its own package to clean up source treeBen Morrison2019-06-051-0/+228