choonkeat/create-elm-server/1.0.0

NOTE: the latest version is 1.0.1

Renamed to choonkeat/elm-webapp. It is published under that name, and new versions come out there.

Versions published as choonkeat/create-elm-server still install under that name. 2 versions of 2 come from the new location (see their notes).

Rerouted (cache, verified). The original is gone. This copy comes from a Lamdera package cache made before it went. The Lamdera package server serves a copy recovered from a Lamdera package cache from 2021-02-13.

What we checked: Rebuilt from the unpacked sources in a Lamdera package cache (5 copies agree), which Elm only writes after the published SHA-1 checked out; elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, so its SHA-1 is not the published one.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/choonkeat/create-elm-server/zipball/1.0.0/

Fullstack.Server.HTTP

Data types and their helper functions to work with HTTP handlers

Definition

type alias Body =
String

Alias for String

type alias Headers =
Value

Alias for opaque Json.Encode.Value

type Method
= GET
| HEAD
| POST
| PUT
| DELETE
| CONNECT
| OPTIONS
| TRACE
| PATCH

Custom type representing all http methods

type alias Request =
Value

Alias for opaque Json.Encode.Value

= StatusContinue
| StatusSwitchingProtocols
| StatusProcessing
| StatusEarlyHints
| StatusOK
| StatusCreated
| StatusAccepted
| StatusNonAuthoritativeInformation
| StatusNoContent
| StatusResetContent
| StatusPartialContent
| StatusMultiStatus
| StatusAlreadyReported
| StatusIMUsed
| StatusMultipleChoices
| StatusMovedPermanently
| StatusFound
| StatusSeeOther
| StatusNotModified
| StatusUseProxy
| StatusTemporaryRedirect
| StatusPermanentRedirect
| StatusBadRequest
| StatusUnauthorized
| StatusPaymentRequired
| StatusForbidden
| StatusNotFound
| StatusMethodNotAllowed
| StatusNotAcceptable
| StatusProxyAuthenticationRequired
| StatusRequestTimeout
| StatusConflict
| StatusGone
| StatusLengthRequired
| StatusPreconditionFailed
| StatusPayloadTooLarge
| StatusURITooLong
| StatusUnsupportedMediaType
| StatusRangeNotSatisfiable
| StatusExpectationFailed
| StatusMisdirectedRequest
| StatusUnprocessableEntity
| StatusLocked
| StatusFailedDependency
| StatusTooEarly
| StatusUpgradeRequired
| StatusPreconditionRequired
| StatusTooManyRequests
| StatusRequestHeaderFieldsTooLarge
| StatusUnavailableForLegalReasons
| StatusInternalServerError
| StatusNotImplemented
| StatusBadGateway
| StatusServiceUnavailable
| StatusGatewayTimeout
| StatusHTTPVersionNotSupported
| StatusVariantAlsoNegotiates
| StatusInsufficientStorage
| StatusLoopDetected
| StatusNotExtended
| StatusNetworkAuthenticationRequired

Custom type representing all http StatusCode

type alias Url =
String

Alias for String

Common Helpers

bodyOf : Request -> String

Returns request body from Request

headersOf : Request -> Headers

Returns request headers from Request

Parse a String and return as http Method

methodOf : Request -> Method

Returns http method from Request

methodString : Method -> String

Returns http Method as String

pathOf : Request -> String

Returns request path from Request

Returns http StatusCode as integer

urlOf : Request -> String

Returns url from Request