src/puppy/common

Source   Edit  

Types

PuppyError = object of IOError
Raised if an operation fails. Source   Edit  
Request = ref object
  url*: Url
  headers*: HttpHeaders
  timeout*: float32
  verb*: string
  body*: string
  when defined(puppyLibcurl) or (defined(windows) or not defined(macosx)):
      allowAnyHttpsCertificate*: bool

  
Source   Edit  
Response = ref object
  headers*: HttpHeaders
  url*: string
  code*: int
  body*: string
Source   Edit  

Consts

CRLF = "\r\n"
Source   Edit  

Procs

proc `$`(req: Request): string {....raises: [], tags: [], forbids: [].}
Source   Edit  

Converters

converter toWebby(header: Header): (string, string) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
converter toWebby(headers: seq[Header]): HttpHeaders {....raises: [], tags: [],
    forbids: [].}
Source   Edit