Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenet committed Nov 25, 2022
1 parent db43c7b commit 61f7581
Show file tree
Hide file tree
Showing 4 changed files with 303 additions and 27 deletions.
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,32 @@
# com.s-exp/nima

Helidon/Nima ring adapter, loom based
Helidon/Nima [RING](https://github.com/ring-clojure/ring/blob/master/SPEC) adapter for clojure, loom based

It's early days to expect breakage. But it mostly works already, just remember
Nima is alpha2 status right now, so do not use this in prod please.


```clojure
(require 's-exp.nima)

(def server
(nima/start! {:port 8080
:handler
(fn [{:as request :keys [body headers ...]}]
{:status 200
:body "Hello world"
:headers {"Something" "Interesting"}})}))
;; ...

(nima/stop! server)

```

## Installation

`{:deps {com.s-exp/nima {:git/sha "..." :git/url "https://github.com/mpenet/nima"}}}`
```clojure
{:deps {com.s-exp/nima {:git/sha "..." :git/url "https://github.com/mpenet/nima"}}}
```

## License

Expand Down
5 changes: 3 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
:extra-paths ["test"]
:extra-deps {org.clojure/test.check {:mvn/version "1.1.1"}
com.exoscale/eftest {:mvn/version "1.0.0"}}
:exec-fn nima.test-runner/-main
:main-opts ["-m" "blabla"]}}}
;; :exec-fn nima.test-runner/-main
;; :main-opts ["-m" "blabla"]
}}}
214 changes: 214 additions & 0 deletions resources/headers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
A-IM
Accept
Accept-Additions
Accept-CH
Accept-Charset
Accept-Datetime
Accept-Encoding
Accept-Features
Accept-Language
Accept-Patch
Accept-Post
Accept-Ranges
Access-Control
Access-Control-Allow-Credentials
Access-Control-Allow-Headers
Access-Control-Allow-Methods
Access-Control-Allow-Origin
Access-Control-Expose-Headers
Access-Control-Max-Age
Access-Control-Request-Headers
Access-Control-Request-Method
Age
Allow
ALPN
Alt-Svc
Alt-Used
Alternates
AMP-Cache-Transform
Apply-To-Redirect-Ref
Authentication-Control
Authentication-Info
Authorization
C-Ext
C-Man
C-Opt
C-PEP
C-PEP-Info
Cache-Control
Cache-Status
Cal-Managed-ID
CalDAV-Timezones
Capsule-Protocol
CDN-Cache-Control
CDN-Loop
Cert-Not-After
Cert-Not-Before
Clear-Site-Data
Close
Configuration-Context
Connection
Content-Base
Content-Disposition
Content-Encoding
Content-ID
Content-Language
Content-Length
Content-Location
Content-MD5
Content-Range
Content-Script-Type
Content-Security-Policy
Content-Security-Policy-Report-Only
Content-Style-Type
Content-Type
Content-Version
Cookie
Cookie2
Cross-Origin-Embedder-Policy
Cross-Origin-Embedder-Policy-Report-Only
Cross-Origin-Opener-Policy
Cross-Origin-Opener-Policy-Report-Only
Cross-Origin-Resource-Policy
DASL
Date
DAV
Default-Style
Delta-Base
Depth
Derived-From
Destination
Differential-ID
Digest
Early-Data
EDIINT-Features
ETag
Expect
Expect-CT
Expires
Ext
Forwarded
From
GetProfile
Hobareg
Host
HTTP2-Settings
If
If-Match
If-Modified-Since
If-None-Match
If-Range
If-Schedule-Tag-Match
If-Unmodified-Since
IM
Include-Referred-Token-Binding-ID
Isolation
Keep-Alive
Label
Last-Event-ID
Last-Modified
Link
Location
Lock-Token
Man
Max-Forwards
Memento-Datetime
Meter
Method-Check
Method-Check-Expires
MIME-Version
Negotiate
OData-EntityId
OData-Isolation
OData-MaxVersion
OData-Version
Opt
Optional-WWW-Authenticate
Ordering-Type
Origin
Origin-Agent-Cluster
OSCORE
OSLC-Core-Version
Overwrite
P3P
PEP
Pep-Info
PICS-Label
Ping-From
Ping-To
Position
Pragma
Prefer
Preference-Applied
Priority
ProfileObject
Protocol
Protocol-Info
Protocol-Query
Protocol-Request
Proxy-Authenticate
Proxy-Authentication-Info
Proxy-Authorization
Proxy-Features
Proxy-Instruction
Proxy-Status
Public
Public-Key-Pins
Public-Key-Pins-Report-Only
Range
Redirect-Ref
Referer
Referer-Root
Refresh
Repeatability-Client-ID
Repeatability-First-Sent
Repeatability-Request-ID
Repeatability-Result
Replay-Nonce
Retry-After
Safe
Schedule-Reply
Schedule-Tag
Sec-GPC
Sec-Token-Binding
Sec-WebSocket-Accept
Sec-WebSocket-Extensions
Sec-WebSocket-Key
Sec-WebSocket-Protocol
Sec-WebSocket-Version
Security-Scheme
Server
Server-Timing
Set-Cookie
Set-Cookie2
SetProfile
SLUG
SoapAction
Status-URI
Strict-Transport-Security
Sunset
Surrogate-Capability
Surrogate-Control
TCN
TE
Timeout
Timing-Allow-Origin
Topic
Traceparent
Tracestate
Trailer
Transfer-Encoding
TTL
Upgrade
Urgency
URI
User-Agent
Variant-Vary
Vary
Via
Want-Digest
Warning
WWW-Authenticate
X-Content-Type-Options
X-Frame-Options
*
Loading

0 comments on commit 61f7581

Please sign in to comment.