• golang net/http 包


    https://studygolang.com/articles/9467

    https://www.jianshu.com/p/be3d9cdc680b

    客户端: 用来发送请求, 并处理返回结果. 涉及到的方法和结构有:

    http.NewRequest 
    http.Client // 结构体, 包含的方法有Get Post PostForm Head 这些方法通http.NewRequest创建请求的, Client中还有一个很重要的方法Do, 他时请求的正真执行者. 
    http.Get  http.Post  http.Head  http.PostForm 这些方法都是对http.Client方法的包装

    const (
    
        StatusContinue           = 100
    
        StatusSwitchingProtocols = 101
    
        StatusOK                   = 200
    
        StatusCreated              = 201
    
        StatusAccepted             = 202
    
        StatusNonAuthoritativeInfo = 203
    
        StatusNoContent            = 204
    
        StatusResetContent         = 205
    
        StatusPartialContent       = 206
    
        StatusMultipleChoices   = 300
    
        StatusMovedPermanently  = 301
    
        StatusFound             = 302
    
        StatusSeeOther          = 303
    
        StatusNotModified       = 304
    
        StatusUseProxy          = 305
    
        StatusTemporaryRedirect = 307
    
        StatusBadRequest                   = 400
    
        StatusUnauthorized                 = 401
    
        StatusPaymentRequired              = 402
    
        StatusForbidden                    = 403
    
        StatusNotFound                     = 404
    
        StatusMethodNotAllowed             = 405
    
        StatusNotAcceptable                = 406
    
        StatusProxyAuthRequired            = 407
    
        StatusRequestTimeout               = 408
    
        StatusConflict                     = 409
    
        StatusGone                         = 410
    
        StatusLengthRequired               = 411
    
        StatusPreconditionFailed           = 412
    
        StatusRequestEntityTooLarge        = 413
    
        StatusRequestURITooLong            = 414
    
        StatusUnsupportedMediaType         = 415
    
        StatusRequestedRangeNotSatisfiable = 416
    
        StatusExpectationFailed            = 417
    
        StatusTeapot                       = 418
    
        StatusInternalServerError     = 500
    
        StatusNotImplemented          = 501
    
        StatusBadGateway              = 502
    
        StatusServiceUnavailable      = 503
    
        StatusGatewayTimeout          = 504
    
        StatusHTTPVersionNotSupported = 505
    
    )
  • 相关阅读:
    spoj227 树状数组插队序列问题
    hdu2838树状数组解逆序
    hdu2642二维树状数组单点更新
    hdu1556 树状数组区间更新单点查询板子
    hdu3015树状数组 poj1990的离散化版本
    poj1990两个树状数组
    Python中面向对象和类
    Python中面向对象和类
    Python中的字典dict
    Python中的字典dict
  • 原文地址:https://www.cnblogs.com/answercard/p/10545254.html
Copyright © 2020-2023  润新知