Library Modulejoshuawright11.papyrus 0.6.16PapyrusCore
PapyrusCore
import PapyrusCore
Module information
- Declarations
- 188
- Symbols
- 203
import PapyrusCore
protocol HTTPService
A type that can perform arbitrary HTTP requests.
protocol Interceptor
protocol KeyMappable
protocol Request
protocol RequestEncoder : KeyMappable
protocol RequestModifier
protocol Response
protocol ResponseDecoder : KeyMappable
struct CurlLogger
An Interceptor
that logs requests based on a condition
struct ErrorResponse
enum KeyMapping
Represents the mapping between your type’s property names and their corresponding request field key.
struct MultipartEncoder
struct PapyrusError
A Papyrus related error.
struct Part
final class Provider
Makes URL requests.
struct RequestBuilder
struct URLEncodedFormDecoder
The wrapper struct for decoding URL encoded form data to Codable classes
struct URLEncodedFormEncoder
The wrapper struct for encoding Codable classes to URL encoded form data
typealias Body<T> = T
typealias Field<T> = T
typealias Header<T> = T
typealias Path<T> = T
typealias Query<T> = T
@attached(peer, names: suffixed(API)) macro API(_ typeName: String? = nil)
@attached(peer) macro Authorization(_ value: RequestBuilder.AuthorizationHeader)
@attached(peer) macro CONNECT(_ path: String)
@attached(peer) macro Converter(encoder: RequestEncoder, decoder: ResponseDecoder)
@attached(peer) macro DELETE(_ path: String)
@attached(peer) macro GET(_ path: String)
@attached(peer) macro HEAD(_ path: String)
@attached(peer) macro HTTP(_ path: String, method: String)
@attached(peer) macro Headers(_ headers: [String : String])
@attached(peer) macro JSON(encoder: JSONEncoder = JSONEncoder(), decoder: JSONDecoder = JSONDecoder())
@attached(peer) macro KeyMapping(_ mapping: KeyMapping)
@attached(peer, names: suffixed(Mock)) macro Mock(_ typeName: String? = nil)
@attached(peer) macro Multipart(_ encoder: MultipartEncoder = MultipartEncoder())
@attached(peer) macro OPTIONS(_ path: String)
@attached(peer) macro PATCH(_ path: String)
@attached(peer) macro POST(_ path: String)
@attached(peer) macro PUT(_ path: String)
@attached(peer) macro TRACE(_ path: String)
@attached(peer) macro URLForm(_ encoder: URLEncodedFormEncoder = URLEncodedFormEncoder())
import Example
import Papyrus
import PapyrusAlamofire
import PapyrusPlugin