CrossClj

1.1.44 docs

SourceDocs



RECENT
    VARS
    ->AnyMethod
    ->DeleteMethod
    ->GetMethod
    ->HeadMethod
    ->OptionsMethod
    ->PostMethod
    ->PutMethod
    ->TraceMethod
    AnyResult
    apply-response-fn
    DeleteResult
    GetResult
    known-methods
    Method
    PostResult
    print-request
    PutResult
    to-encoding
    to-title-case
    zero-content-length

    « Index of all namespaces of this project

    (->AnyMethod)
    Positional factory function for class yada.methods.AnyMethod.
    
    (->DeleteMethod)
    Positional factory function for class yada.methods.DeleteMethod.
    
    (->GetMethod)
    Positional factory function for class yada.methods.GetMethod.
    
    (->HeadMethod)
    Positional factory function for class yada.methods.HeadMethod.
    
    (->OptionsMethod)
    Positional factory function for class yada.methods.OptionsMethod.
    
    (->PostMethod)
    Positional factory function for class yada.methods.PostMethod.
    
    (->PutMethod)
    Positional factory function for class yada.methods.PutMethod.
    
    (->TraceMethod)
    Positional factory function for class yada.methods.TraceMethod.
    
    protocol
    (interpret-any-result _ ctx)
    (apply-response-fn f ctx)
    protocol
    (interpret-get-result _ ctx)
    (known-methods)
    Return a map of method instances
    
    protocol
    (idempotent? _)
    Is the method considered idempotent? Return a boolean
    
    (keyword-binding _)
    Return the keyword this method is for
    
    (request _ ctx)
    Apply the method to the resource
    
    (safe? _)
    Is the method considered safe? Return a boolean
    
    protocol
    (interpret-post-result _ ctx)
    (print-request req)
    Print the request. Used for TRACE.
    
    protocol
    (interpret-put-result _ ctx)
    (to-encoding s encoding)
    (to-title-case s)
    Private
    (zero-content-length ctx)
    Unless status code is 1xx or 204, or method is CONNECT. We don't set
    the content-length in the case of a 304. Ensure status is set
    in [:response :status] prior to call this, and only call if
    response :body is nil. See rfc7230#section-3.3.2 for specification
    details.