| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Polysemy.Http.Data.Request
Description
Synopsis
- data Method
- methodUpper :: Method -> Text
- newtype Host = Host {}
- newtype Port = Port {}
- newtype Tls = Tls {}
- newtype Path = Path {}
- newtype QueryKey = QueryKey {
- unQueryKey :: Text
- newtype QueryValue = QueryValue {
- unQueryValue :: Text
- newtype Body = Body {
- unBody :: ByteString
- data Request = Request {}
Documentation
All standard HTTP methods, mirroring those from Types, plus a constructor for arbitrary strings.
methodUpper :: Method -> Text Source #
Produce the usual uppercase representation of a method.
Request host name.
Instances
| FromJSON Host Source # | |||||
Defined in Polysemy.Http.Data.Request | |||||
| ToJSON Host Source # | |||||
| IsString Host Source # | |||||
Defined in Polysemy.Http.Data.Request Methods fromString :: String -> Host # | |||||
| Generic Host Source # | |||||
Defined in Polysemy.Http.Data.Request Associated Types
| |||||
| Show Host Source # | |||||
| Eq Host Source # | |||||
| type Rep Host Source # | |||||
Defined in Polysemy.Http.Data.Request | |||||
Request port.
Instances
| FromJSON Port Source # | |||||
Defined in Polysemy.Http.Data.Request | |||||
| ToJSON Port Source # | |||||
| Enum Port Source # | |||||
| Generic Port Source # | |||||
Defined in Polysemy.Http.Data.Request Associated Types
| |||||
| Num Port Source # | |||||
| Read Port Source # | |||||
| Integral Port Source # | |||||
| Real Port Source # | |||||
Defined in Polysemy.Http.Data.Request Methods toRational :: Port -> Rational # | |||||
| Show Port Source # | |||||
| Eq Port Source # | |||||
| Ord Port Source # | |||||
| type Rep Port Source # | |||||
Defined in Polysemy.Http.Data.Request | |||||
A flag that indicates whether a request should use TLS.
Instances
| FromJSON Tls Source # | |||||
Defined in Polysemy.Http.Data.Request | |||||
| ToJSON Tls Source # | |||||
| Generic Tls Source # | |||||
Defined in Polysemy.Http.Data.Request Associated Types
| |||||
| Show Tls Source # | |||||
| Eq Tls Source # | |||||
| type Rep Tls Source # | |||||
Defined in Polysemy.Http.Data.Request | |||||
Rrequest path.
Instances
| FromJSON Path Source # | |||||
Defined in Polysemy.Http.Data.Request | |||||
| ToJSON Path Source # | |||||
| IsString Path Source # | |||||
Defined in Polysemy.Http.Data.Request Methods fromString :: String -> Path # | |||||
| Monoid Path Source # | |||||
| Semigroup Path Source # | |||||
| Generic Path Source # | |||||
Defined in Polysemy.Http.Data.Request Associated Types
| |||||
| Show Path Source # | |||||
| Eq Path Source # | |||||
| type Rep Path Source # | |||||
Defined in Polysemy.Http.Data.Request | |||||
The key of a query parameter.
Constructors
| QueryKey | |
Fields
| |
Instances
| FromJSON QueryKey Source # | |||||
Defined in Polysemy.Http.Data.Request | |||||
| ToJSON QueryKey Source # | |||||
| IsString QueryKey Source # | |||||
Defined in Polysemy.Http.Data.Request Methods fromString :: String -> QueryKey # | |||||
| Generic QueryKey Source # | |||||
Defined in Polysemy.Http.Data.Request Associated Types
| |||||
| Show QueryKey Source # | |||||
| Eq QueryKey Source # | |||||
| type Rep QueryKey Source # | |||||
Defined in Polysemy.Http.Data.Request | |||||
newtype QueryValue Source #
The value of a query parameter.
Constructors
| QueryValue | |
Fields
| |
Instances
Request body.
Constructors
| Body | |
Fields
| |
Instances
| IsString Body Source # | |||||
Defined in Polysemy.Http.Data.Request Methods fromString :: String -> Body # | |||||
| Generic Body Source # | |||||
Defined in Polysemy.Http.Data.Request Associated Types
| |||||
| Show Body Source # | |||||
| Eq Body Source # | |||||
| type Rep Body Source # | |||||
Defined in Polysemy.Http.Data.Request type Rep Body = D1 ('MetaData "Body" "Polysemy.Http.Data.Request" "polysemy-http-0.13.1.0-HslaAdsBwfBFVTgN9RdJNp" 'True) (C1 ('MetaCons "Body" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) | |||||
HTTP request parameters, used by Http.
Constructors
| Request | |
Instances
| Generic Request Source # | |||||
Defined in Polysemy.Http.Data.Request Associated Types
| |||||
| Show Request Source # | |||||
| Eq Request Source # | |||||
| type Rep Request Source # | |||||
Defined in Polysemy.Http.Data.Request type Rep Request = D1 ('MetaData "Request" "Polysemy.Http.Data.Request" "polysemy-http-0.13.1.0-HslaAdsBwfBFVTgN9RdJNp" 'False) (C1 ('MetaCons "Request" 'PrefixI 'True) (((S1 ('MetaSel ('Just "method") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Method) :*: S1 ('MetaSel ('Just "host") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Host)) :*: (S1 ('MetaSel ('Just "port") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Port)) :*: S1 ('MetaSel ('Just "tls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Tls))) :*: ((S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Path) :*: S1 ('MetaSel ('Just "headers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(HeaderName, HeaderValue)])) :*: (S1 ('MetaSel ('Just "cookies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CookieJar) :*: (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(QueryKey, Maybe QueryValue)]) :*: S1 ('MetaSel ('Just "body") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Body)))))) | |||||