choonkeat/elm-fullstack/2.0.0

NOTE: the latest version is 4.0.1

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

Versions published as choonkeat/elm-fullstack still install under that name. 4 versions of 7 come from the new location (see their notes). 3 versions could not be recovered and cannot be installed.

Rerouted (fork, verified). The original repository is gone. This copy comes from a fork that still has the tag. The Lamdera package server serves a copy recovered from https://github.com/jsegura/elm-fullstack (a fork).

What we checked: Rebuilt with git archive from commit 3114ddc92967 of https://github.com/jsegura/elm-fullstack (a fork) (zip prefix choonkeat-elm-fullstack-38009d9/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 896074ce94567ccb36d9c069b55a8fba59df4254.

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/elm-fullstack/zipball/2.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