httpconstants.java
来自「真正的网络爬虫的源代码啊,希望大家好好阅读,写出心得体会啊」· Java 代码 · 共 28 行
JAVA
28 行
package net.matuschek.http;
/*********************************************
* Copyright (c) 2001 by Daniel Matuschek
* *******************************************/
/**
* Constants for HTTP
* @author Daniel Matuschek
* @version $Revision: 1.4 $
* */
public class HttpConstants {
public final static int HTTP_OK = 200;
public final static int HTTP_FOUND = 302;
public final static int HTTP_MOVEDPERMANENTLY = 301;
public final static int HTTP_UNAUTHORIZED = 401;
public final static int HTTP_NOTFOUND = 404;
public final static int HTTP_NOTMODIFIED=304;
/** HTTP GET request **/
public final static int GET = 1;
/** HTTP POST request **/
public final static int POST = 2;
/** HTTP HEAD request **/
public final static int HEAD = 3;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?